mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +00:00
- fixed crash in Actor.Warp() with null destination
https://forum.zdoom.org/viewtopic.php?t=63031
This commit is contained in:
parent
e4f5160f66
commit
33067deb86
1 changed files with 3 additions and 1 deletions
|
@ -1001,5 +1001,7 @@ DEFINE_ACTION_FUNCTION(AActor, Warp)
|
|||
PARAM_FLOAT(radiusoffset)
|
||||
PARAM_ANGLE(pitch)
|
||||
|
||||
ACTION_RETURN_INT(!!P_Thing_Warp(self, destination, xofs, yofs, zofs, angle, flags, heightoffset, radiusoffset, pitch));
|
||||
const int result = destination == nullptr ? 0 :
|
||||
P_Thing_Warp(self, destination, xofs, yofs, zofs, angle, flags, heightoffset, radiusoffset, pitch);
|
||||
ACTION_RETURN_INT(result);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue