aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-07 07:36:52 -0500
committerPaul Gilbert2016-11-07 07:36:52 -0500
commitf6593ce9c0db62d16af051f7ad98128cfe41bd2c (patch)
tree1c327839b58f17a8efedcacd65b60376467f149d /engines/titanic/true_talk
parent57cd02b04877d6a6dd78743b4baa5d2b28dcc69a (diff)
downloadscummvm-rg350-f6593ce9c0db62d16af051f7ad98128cfe41bd2c.tar.gz
scummvm-rg350-f6593ce9c0db62d16af051f7ad98128cfe41bd2c.tar.bz2
scummvm-rg350-f6593ce9c0db62d16af051f7ad98128cfe41bd2c.zip
TITANIC: Simplify freeing class list on exit
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r--engines/titanic/true_talk/tt_npc_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/tt_npc_script.cpp b/engines/titanic/true_talk/tt_npc_script.cpp
index bfb97c8c37..ffa9d7f102 100644
--- a/engines/titanic/true_talk/tt_npc_script.cpp
+++ b/engines/titanic/true_talk/tt_npc_script.cpp
@@ -340,7 +340,7 @@ uint TTnpcScript::getRangeValue(uint id) {
int index = (int)getRandomNumber(count) - 1;
if (count > 1 && range->_values[index] == range->_priorIndex) {
- for (int retry = 0; retry < 8 && index != range->_priorIndex; ++retry)
+ for (int retry = 0; retry < 8 && index != (int)range->_priorIndex; ++retry)
index = (int)getRandomNumber(count) - 1;
}