Skip to content

Commit

Permalink
Fixed|Hexen: Crash when spawning a missile
Browse files Browse the repository at this point in the history
Under certain circumstances (first tick after map load?), a missile
spawn was attempted with a NULL target.

IssueID #2088
  • Loading branch information
skyjake committed Jun 13, 2015
1 parent 090e6f4 commit 6291c7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/apps/plugins/hexen/src/p_mobj.c
Expand Up @@ -1713,6 +1713,9 @@ mobj_t* P_SpawnMissile(mobjtype_t type, mobj_t* source, mobj_t* dest)
angle_t angle;
float aim;

// Destination is required for the missile; if missing, can't spawn.
if(!dest) return NULL;

switch(type)
{
case MT_MNTRFX1: // Minotaur swing attack missile
Expand Down

0 comments on commit 6291c7c

Please sign in to comment.