summaryrefslogtreecommitdiff
path: root/src/game/Entities/GameObject/GameObject.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-09-19 11:23:07 +0200
committerYehonal <yehonal.azeroth@gmail.com>2017-09-19 11:23:07 +0200
commit944cfd077eced571e3ac5752a377b5a0934b9ee6 (patch)
tree0d4b677783603d2da89b40a84658393488b025c3 /src/game/Entities/GameObject/GameObject.cpp
parent787a9238df0069ef7fe27f9b714036c97436483a (diff)
Cleaning unused variables
Diffstat (limited to 'src/game/Entities/GameObject/GameObject.cpp')
-rw-r--r--src/game/Entities/GameObject/GameObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Entities/GameObject/GameObject.cpp b/src/game/Entities/GameObject/GameObject.cpp
index 9628a7f10e..735dfefedd 100644
--- a/src/game/Entities/GameObject/GameObject.cpp
+++ b/src/game/Entities/GameObject/GameObject.cpp
@@ -347,7 +347,7 @@ void GameObject::Update(uint32 diff)
// Bombs
if (goInfo->trap.type == 2)
m_cooldownTime = World::GetGameTimeMS()+10*IN_MILLISECONDS; // Hardcoded tooltip value
- else if (Unit* owner = GetOwner())
+ else if (GetOwner())
m_cooldownTime = World::GetGameTimeMS()+goInfo->trap.startDelay*IN_MILLISECONDS;
m_lootState = GO_READY;