summaryrefslogtreecommitdiff
path: root/src/d/d_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/d/d_item.cpp')
-rw-r--r--src/d/d_item.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/d/d_item.cpp b/src/d/d_item.cpp
index dba0047cfa..ee3b260042 100644
--- a/src/d/d_item.cpp
+++ b/src/d/d_item.cpp
@@ -989,9 +989,11 @@ inline s32 getCheckItemFunc(u8 i_no) {
s32 checkItemGet(u8 item_id, int param_2) {
s32 checkItem = getCheckItemFunc(item_id);
+
if (checkItem == -1) {
checkItem = param_2;
}
+
return checkItem;
}