summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp
index 718b6f0..cf872de 100644
--- a/src/map/atcommand.cpp
+++ b/src/map/atcommand.cpp
@@ -1419,7 +1419,7 @@ ATCE atcommand_item(Session *s, dumb_ptr<map_session_data> sd,
P<struct item_data> item_data = TRY_UNWRAP(extract_item_opt(item_name), return ATCE::EXIST);
ItemNameId item_id = item_data->nameid;
- assert (item_id);
+ assert(item_id >= wrap<ItemNameId>(0));
{
get_count = number;
@@ -3859,7 +3859,7 @@ ATCE atcommand_chardelitem(Session *s, dumb_ptr<map_session_data> sd,
P<struct item_data> item_data = TRY_UNWRAP(extract_item_opt(item_name), return ATCE::EXIST);
ItemNameId item_id = item_data->nameid;
- assert (item_id);
+ assert(item_id >= wrap<ItemNameId>(0));
{
dumb_ptr<map_session_data> pl_sd = map_nick2sd(character);