aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/hotspots.cpp
diff options
context:
space:
mode:
authoreriktorbjorn2011-06-30 23:47:10 +0200
committereriktorbjorn2011-06-30 23:47:10 +0200
commit5dd8f2575b0f39dea909db73afc83f16732b2a5e (patch)
treebeadcb488a8d39cbf214beeded9588c97f9f19db /engines/lure/hotspots.cpp
parentd3717c12741f69facfd76a12675d18ed3c9c5b26 (diff)
downloadscummvm-rg350-5dd8f2575b0f39dea909db73afc83f16732b2a5e.tar.gz
scummvm-rg350-5dd8f2575b0f39dea909db73afc83f16732b2a5e.tar.bz2
scummvm-rg350-5dd8f2575b0f39dea909db73afc83f16732b2a5e.zip
JANITORIAL: Silence a couple of "variable set but not used" warnings.
Diffstat (limited to 'engines/lure/hotspots.cpp')
-rw-r--r--engines/lure/hotspots.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index 97fbaa72ae..f38bac6e12 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -763,7 +763,7 @@ void Hotspot::showMessage(uint16 messageId, uint16 destCharacterId) {
MemoryBlock *data = res.messagesData();
Hotspot *hotspot;
uint8 *msgData = (uint8 *) data->data();
- uint16 v2, idVal;
+ uint16 idVal;
messageId &= 0x7fff;
// Skip through header to find table for given character
@@ -781,7 +781,6 @@ void Hotspot::showMessage(uint16 messageId, uint16 destCharacterId) {
// Scan through secondary list
uint16 *v = (uint16 *) (msgData + READ_LE_UINT16(msgData + idx + sizeof(uint16)));
- v2 = 0;
while ((idVal = READ_LE_UINT16(v)) != 0xffff) {
++v;
if (READ_LE_UINT16(v) == messageId) break;