diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-29 18:43:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-29 18:43:12 +0300 |
commit | 48a10f839f12790b3ec1f6cb5c50820180ae8339 (patch) | |
tree | c1b5d126b9b48fc10a8ed8c49d9ffd8ea0cda46f /src/actions/commands.cpp | |
parent | cad5251c84edb51ddc3180d992eeea043022a216 (diff) | |
download | manaplus-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.gz manaplus-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.bz2 manaplus-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.xz manaplus-48a10f839f12790b3ec1f6cb5c50820180ae8339.zip |
Fix some issues detected by cppcheck.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index ce4093110..0d3111b59 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1166,11 +1166,11 @@ impHandler(craft) impHandler(npcClipboard) { - int x = 0; - int y = 0; - if (npcHandler) { + int x = 0; + int y = 0; + NpcDialog *const dialog = npcHandler->getCurrentNpcDialog(); if (dialog && parse2Int(event.args, x, y)) |