- Fixed GCC/Clang regression post serialization.

This commit is contained in:
Edoardo Prezioso 2016-09-24 09:00:31 +02:00
commit 7e4d0ecdbf
3 changed files with 5 additions and 5 deletions

View file

@ -859,7 +859,7 @@ void FSerializer::ReadObjects(bool hubtravel)
PClass *cls = PClass::FindClass(clsname);
if (cls == nullptr)
{
Printf("Unknown object class '%d' in savegame", clsname.GetChars());
Printf("Unknown object class '%s' in savegame", clsname.GetChars());
founderrors = true;
r->mDObjects[i] = RUNTIME_CLASS(AActor)->CreateNew(); // make sure we got at least a valid pointer for the duration of the loading process.
r->mDObjects[i]->Destroy(); // but we do not want to keep this around, so destroy it right away.