diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 2335088fc..dd0a568ce 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -4977,7 +4977,7 @@ AActor *FLevelLocals::SpawnPlayer (FPlayerStart *mthing, int playernum, int flag mobj = Spawn (this, p->cls, spawn, NO_REPLACE); - if (flags & LEVEL_USEPLAYERSTARTZ) + if (this->flags & LEVEL_USEPLAYERSTARTZ) { if (spawn.Z == ONFLOORZ) mobj->AddZ(mthing->pos.Z);