aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-03 11:07:01 -0500
committermegamage <none@none>2009-06-03 11:07:01 -0500
commit5036cf91f4c5657997b5f54b2228bf8f5fdf64e9 (patch)
tree529a559d7fb01b0ba1c75c2e5414684100e81799 /src
parent1168492151f2757738f21761176d214e0b203925 (diff)
*Fix a crash introduced in 3734. Thanks to onkelz28
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Creature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index c453217a77c..6a149d97b33 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -1750,7 +1750,7 @@ void Creature::setDeathState(DeathState s)
SetMeleeDamageSchool(SpellSchools(cinfo->dmgschool));
LoadCreaturesAddon(true);
Motion_Initialize();
- if(GetPhaseMask() != GetCreatureData()->phaseMask)
+ if(GetCreatureData() && GetPhaseMask() != GetCreatureData()->phaseMask)
SetPhaseMask(GetCreatureData()->phaseMask, true);
}
}