better polyobj count error for savegame

from Banpyura
gonna look into their return to menu instead of i_error stuff sometime
This commit is contained in:
alufolie91 committed 2026-06-27 23:42:01 +02:00
1 parent c889a979ca
commit eca01cbc39
1 file changed
+1 -1
+1 -1
View File
@@ -3170,7 +3170,7 @@ FUNCINLINE static ATTRINLINE void P_UnArchivePolyObjects(savebuffer_t *save)
numSavedPolys = READINT32(save->p);
if (numSavedPolys != numPolyObjects)
I_Error("P_UnArchivePolyObjects: polyobj count inconsistency\n");
I_Error("P_UnArchivePolyObjects: polyobj count inconsistency (expected %d, got %d)\n", numPolyObjects, numSavedPolys);
for (i = 0; i < numSavedPolys; ++i)
P_UnArchivePolyObj(save, &PolyObjects[i]);