aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2013-04-18 20:23:46 +0200
committerMax Horn2013-04-18 23:50:21 +0200
commit34aaac0a1e40ce2136572ffc71de3345ace706ef (patch)
tree6eea862e771891802205168afdbaf31d583565b5
parent8b602816f4d9f73392136b8371914e5937f88385 (diff)
downloadscummvm-rg350-34aaac0a1e40ce2136572ffc71de3345ace706ef.tar.gz
scummvm-rg350-34aaac0a1e40ce2136572ffc71de3345ace706ef.tar.bz2
scummvm-rg350-34aaac0a1e40ce2136572ffc71de3345ace706ef.zip
AGI: Silence another clang var
Reading an array without using the resulting value has no effect. In any case, this code still looks like it may be broken, so somebody who knows more about AGI should perhaps investigate this closer.
-rw-r--r--engines/agi/op_cmd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp
index 9d899b1855..0245f3936a 100644
--- a/engines/agi/op_cmd.cpp
+++ b/engines/agi/op_cmd.cpp
@@ -1705,7 +1705,9 @@ void cmdCallV1(AgiGame *state, uint8 *p) {
// FIXME: The following instruction looks incomplete.
// Maybe something is meant to be assigned to, or read from,
// the logic_list entry?
- state->logic_list[++state->max_logics];
+// state->logic_list[++state->max_logics];
+ // For now, just do the increment, to silence a clang warning
+ ++state->max_logics;
_v[13] = 1;
}