diff options
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index 5a9c94b384f..eca67c1bf8e 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -1243,14 +1243,10 @@ public: } //show animation - static bool HandleDebugAnimCommand(ChatHandler* handler, char const* args) + static bool HandleDebugAnimCommand(ChatHandler* handler, uint32 emoteId) { - if (!*args) - return false; - - uint32 animId = atoi((char*)args); if (Unit* unit = handler->getSelectedUnit()) - unit->HandleEmoteCommand(animId); + unit->HandleEmoteCommand(static_cast<Emote>(emoteId)); return true; } |
