- fix polyobject init

This commit is contained in:
Christoph Oelckers 2019-02-04 13:05:27 +01:00
commit 496eba3acb
2 changed files with 3 additions and 1 deletions

View file

@ -352,6 +352,7 @@ void MapLoader::PO_Init (void)
InitSideLists ();
Level->Polyobjects.Resize(NumPolyobjs);
for (auto &po : Level->Polyobjects) po.Level = Level; // must be done before the init loop below.
polyIndex = 0; // index polyobj number
// Find the startSpot points, and spawn each polyobj