Skip to content

Commit

Permalink
ChangeLevel: Add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Apr 17, 2017
1 parent 3931e3b commit b33d386
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scene/ChangeLevel.cpp
Expand Up @@ -1974,6 +1974,10 @@ static Entity * ARX_CHANGELEVEL_Pop_IO(const std::string & idString, EntityInsta

memset(Gaids[Gaids_Number.handleData()], 0, sizeof(ARX_CHANGELEVEL_INVENTORY_DATA_SAVE));

// The current entity should be visible at this point to preven infinite loops while resolving
// related entities.
arx_assert(entities.getById(idString) == io->index());

io->requestRoomUpdate = 1;
io->room = -1;
io->no_collide = EntityHandle();
Expand Down

0 comments on commit b33d386

Please sign in to comment.