aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/party.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-12-29 00:41:55 -0500
committerPaul Gilbert2017-12-29 00:41:55 -0500
commit45891aed916f5377c1a8fed8c02ce5ec32ea52e4 (patch)
tree8a15e63d5bb5641cfc9412046ebfca66fa528b8e /engines/xeen/party.cpp
parentfb73c1a3ccbf3ce489cd2539a2e4b769a138a055 (diff)
downloadscummvm-rg350-45891aed916f5377c1a8fed8c02ce5ec32ea52e4.tar.gz
scummvm-rg350-45891aed916f5377c1a8fed8c02ce5ec32ea52e4.tar.bz2
scummvm-rg350-45891aed916f5377c1a8fed8c02ce5ec32ea52e4.zip
XEEN: Implement sets & checks for _questItems
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r--engines/xeen/party.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 0a2e5b9f82..20a80a0cf8 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -860,7 +860,7 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
break;
}
} else {
- error("Invalid id");
+ _questItems[takeVal - 82]--;
}
}
if (!found)
@@ -1129,7 +1129,7 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
return false;
}
} else {
- error("Invalid id");
+ _questItems[giveVal - 82]++;
}
return true;
}