mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fixed: EV_Teleport must not access the thing's player pointer before ensuring that 'thing' is a valid pointer.
This commit is contained in:
parent
981b5f32e0
commit
3eaebabdf1
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,6 @@ static AActor *SelectTeleDest (int tid, int tag, bool norandom)
|
|||
bool EV_Teleport (int tid, int tag, line_t *line, int side, AActor *thing, bool fog,
|
||||
bool sourceFog, bool keepOrientation, bool haltVelocity, bool keepHeight)
|
||||
{
|
||||
bool predicting = (thing->player && (thing->player->cheats & CF_PREDICTING));
|
||||
|
||||
AActor *searcher;
|
||||
fixed_t z;
|
||||
|
@ -341,6 +340,7 @@ bool EV_Teleport (int tid, int tag, line_t *line, int side, AActor *thing, bool
|
|||
{ // Teleport function called with an invalid actor
|
||||
return false;
|
||||
}
|
||||
bool predicting = (thing->player && (thing->player->cheats & CF_PREDICTING));
|
||||
if (thing->flags2 & MF2_NOTELEPORT)
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue