aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-02 10:39:00 +1000
committerPaul Gilbert2012-06-02 10:39:00 +1000
commit01df8ae0e81a25c14b0f17e82af9d0ce407846e0 (patch)
treeb400bbb982fd453756a941248feb4fa4cdc5b669
parent6e104f0883eaf060e66dadc07cf546b5f1dee1b7 (diff)
downloadscummvm-rg350-01df8ae0e81a25c14b0f17e82af9d0ce407846e0.tar.gz
scummvm-rg350-01df8ae0e81a25c14b0f17e82af9d0ce407846e0.tar.bz2
scummvm-rg350-01df8ae0e81a25c14b0f17e82af9d0ce407846e0.zip
TONY: Fix compiler warning of not using a deferenced pointer
-rw-r--r--engines/tony/mpal/loadmpc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/tony/mpal/loadmpc.cpp b/engines/tony/mpal/loadmpc.cpp
index a80c85eb75..02571bd30f 100644
--- a/engines/tony/mpal/loadmpc.cpp
+++ b/engines/tony/mpal/loadmpc.cpp
@@ -278,10 +278,9 @@ static const byte *ParseDialog(const byte *lpBuf, LPMPALDIALOG lpmdDialog) {
lpBuf += 4;
// PlayGroup
- num3 = *lpBuf;
- *lpBuf++;
+ num3 = *lpBuf++;
- if (num3 >= MAX_PLAYGROUPS_PER_SELECT)
+ if (num3 >= MAX_PLAYGROUPS_PER_SELECT)
error("Too much playgroups in select #%d in choice #%d in dialog #%d", j, lpmdDialog->Choice[i].nChoice, lpmdDialog->nObj);
for (z = 0; z < num3; z++) {