Savegames: Remove outdated assertion

Scenarios are now loaded with the same flags they were saved with. Thus,
the objectlist is told to skip player objects while loading. But this can
be safely ignored, because the scenario shouldn't contain any player
objects that could be ignored in the first place. But checking that loading
and saving is done with the same flag would be nice.
Günther Brammer 2011-09-19 23:09:42 +02:00
parent fff38554d7
commit 952b180ac1
1 changed files with 2 additions and 2 deletions

View File

@ -521,8 +521,8 @@ void C4ObjectList::CompileFunc(StdCompiler *pComp, bool fSkipPlayerObjects, C4Va
}
else
{
// this mode not supported
assert(!fSkipPlayerObjects);
// FIXME: Check that no PlayerObjects are loaded when fSkipPlayerObjects is true
// i.e. that loading and saving was done with the same flag.
// Remove previous data
Clear();
// Load objects, add them to the list.