diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/shortcut/dropshortcut.cpp | 2 | ||||
-rw-r--r-- | src/gui/shortcut/dropshortcut.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/shortcut/dropshortcut.cpp b/src/gui/shortcut/dropshortcut.cpp index f9876ebee..f71c9d5c7 100644 --- a/src/gui/shortcut/dropshortcut.cpp +++ b/src/gui/shortcut/dropshortcut.cpp @@ -103,7 +103,7 @@ void DropShortcut::dropItems(const int cnt) { if (!PacketLimiter::limitPackets(PacketType::PACKET_DROP)) return; - if (dropItem()) + if (dropItem(1)) n++; } if (n >= cnt) diff --git a/src/gui/shortcut/dropshortcut.h b/src/gui/shortcut/dropshortcut.h index b3993b96e..a6e87c05d 100644 --- a/src/gui/shortcut/dropshortcut.h +++ b/src/gui/shortcut/dropshortcut.h @@ -53,13 +53,13 @@ class DropShortcut final : public ShortcutBase /** * Drop all items in cicle. */ - void dropItems(const int cnt = 1); + void dropItems(const int cnt); private: /** * Drop item in cicle. */ - bool dropItem(const int cnt = 1); + bool dropItem(const int cnt); int mLastDropIndex; }; |