diff options
author | Paul Gilbert | 2012-06-02 10:39:00 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-06-02 10:39:00 +1000 |
commit | 01df8ae0e81a25c14b0f17e82af9d0ce407846e0 (patch) | |
tree | b400bbb982fd453756a941248feb4fa4cdc5b669 /engines/tony/mpal | |
parent | 6e104f0883eaf060e66dadc07cf546b5f1dee1b7 (diff) | |
download | scummvm-rg350-01df8ae0e81a25c14b0f17e82af9d0ce407846e0.tar.gz scummvm-rg350-01df8ae0e81a25c14b0f17e82af9d0ce407846e0.tar.bz2 scummvm-rg350-01df8ae0e81a25c14b0f17e82af9d0ce407846e0.zip |
TONY: Fix compiler warning of not using a deferenced pointer
Diffstat (limited to 'engines/tony/mpal')
-rw-r--r-- | engines/tony/mpal/loadmpc.cpp | 5 |
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++) { |