summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index a08023dc1..54d2949f6 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2571,7 +2571,7 @@ int atcommand_item(
item_id = item_data->nameid;
get_count = number;
//Check if it's stackable.
- if (itemdb_isstackable2(item_data))
+ if (!itemdb_isstackable2(item_data))
get_count = 1;
for (i = 0; i < number; i += get_count) {