summaryrefslogtreecommitdiff
path: root/src/d/d_item.cpp
diff options
context:
space:
mode:
authorPheenoh <pheenoh@gmail.com>2023-03-07 18:03:46 -0700
committerGitHub <noreply@github.com>2023-03-07 18:03:46 -0700
commitf31ab5ae0be3de6e0910b2d5942e33458be043ac (patch)
tree4fbfdeda4e8bfac575a81ab9d4eaa79530ea35c5 /src/d/d_item.cpp
parent6c2e18af70dcc392b49cacf77fdb6ff8a164c0a5 (diff)
Misc Changes (#306)
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;
}