summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp6
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))