From 48a10f839f12790b3ec1f6cb5c50820180ae8339 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Jul 2016 18:43:12 +0300 Subject: Fix some issues detected by cppcheck. --- src/actions/commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/actions') 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)) -- cgit v1.2.3-60-g2f50