Slightly more information on ACS serialize errors

This commit is contained in:
Edward Richardson 2015-04-25 18:10:26 +12:00
parent 920a4fbf45
commit 0fd93cc033

View file

@ -1562,7 +1562,7 @@ void FBehavior::StaticSerializeModuleStates (FArchive &arc)
if (modnum != StaticModules.Size()) if (modnum != StaticModules.Size())
{ {
I_Error ("Level was saved with a different number of ACS modules."); I_Error("Level was saved with a different number of ACS modules. (Have %d, save has %d)", StaticModules.Size(), modnum);
} }
for (modnum = 0; modnum < StaticModules.Size(); ++modnum) for (modnum = 0; modnum < StaticModules.Size(); ++modnum)
@ -1583,7 +1583,7 @@ void FBehavior::StaticSerializeModuleStates (FArchive &arc)
if (stricmp (modname, module->ModuleName) != 0) if (stricmp (modname, module->ModuleName) != 0)
{ {
delete[] modname; delete[] modname;
I_Error ("Level was saved with a different set of ACS modules."); I_Error("Level was saved with a different set or order of ACS modules. (Have %s, save has %s)", module->ModuleName, modname);
} }
else if (ModSize != module->GetDataSize()) else if (ModSize != module->GetDataSize())
{ {