summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 09eee8b05..f64e570c1 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -27,6 +27,7 @@
#include "client.h"
#include "configuration.h"
#include "game.h"
+#include "gamemodifiers.h"
#include "graphicsmanager.h"
#include "guildmanager.h"
#include "main.h"
@@ -1161,8 +1162,8 @@ impHandler2(dumpTests)
impHandler1(setDrop)
{
- if (player_node)
- player_node->setQuickDropCounter(atoi(args.c_str()));
+ if (modifiers)
+ modifiers->setQuickDropCounter(atoi(args.c_str()));
}
impHandler0(error)