aboutsummaryrefslogtreecommitdiff
path: root/src/game/ScriptedCreature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/ScriptedCreature.cpp')
-rw-r--r--src/game/ScriptedCreature.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/ScriptedCreature.cpp b/src/game/ScriptedCreature.cpp
index 1dc8934a511..1a2060f330c 100644
--- a/src/game/ScriptedCreature.cpp
+++ b/src/game/ScriptedCreature.cpp
@@ -709,12 +709,14 @@ void LoadOverridenSQLData()
GameObjectInfo *goInfo;
// Sunwell Plateau : Kalecgos : Spectral Rift
- if (goInfo = GOBJECT(187055))
+ goInfo = GOBJECT(187055);
+ if (goInfo)
if (goInfo->type == GAMEOBJECT_TYPE_GOOBER)
goInfo->goober.lockId = 57; // need LOCKTYPE_QUICK_OPEN
// Naxxramas : Sapphiron Birth
- if (goInfo = GOBJECT(181356))
+ goInfo = GOBJECT(181356);
+ if (goInfo)
if (goInfo->type == GAMEOBJECT_TYPE_TRAP)
goInfo->trap.radius = 50;
}