Skip to content

Commit

Permalink
Prevent savegame bug in P_SpawnMissileXYZ()
Browse files Browse the repository at this point in the history
  • Loading branch information
jval1972 committed Mar 14, 2022
1 parent 0774f16 commit afcbe47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Mars/p_mobj.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1887,6 +1887,13 @@ function P_SpawnMissileXYZ(x, y, z: fixed_t; source: Pmobj_t; dest: Pmobj_t; _ty
speed: float;
an: angle_t;
begin
// JVAL: Prevent savegame bug
if dest = nil then
begin
result := nil;
exit;
end;

P_SaveRandom;

flags_ex := mobjinfo[Ord(_type)].flags_ex;
Expand Down

0 comments on commit afcbe47

Please sign in to comment.