diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index e80fb3879..a47e1e067 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -2704,7 +2704,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Respawn) } else { - oktorespawn = P_CheckPosition(self, self->x, self->z, true); + oktorespawn = P_CheckPosition(self, self->x, self->y, true); } if (oktorespawn)