diff options
author | Strangerke | 2014-05-30 10:44:56 +0200 |
---|---|---|
committer | Strangerke | 2014-05-30 10:44:56 +0200 |
commit | bea9e0532ec230c89cf76656ed4be0db3eb4bc13 (patch) | |
tree | 8a1e1c1897345403921ba72e015d1aa4096e4c81 /engines | |
parent | 7ecb734a6ad6c276c725dbec84c173e9b6a26e0d (diff) | |
download | scummvm-rg350-bea9e0532ec230c89cf76656ed4be0db3eb4bc13.tar.gz scummvm-rg350-bea9e0532ec230c89cf76656ed4be0db3eb4bc13.tar.bz2 scummvm-rg350-bea9e0532ec230c89cf76656ed4be0db3eb4bc13.zip |
CGE2: Move an unused variable in a STUB clock, initialize it (in the comment). That fixes a warning
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cge2/snail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index ede6206d1f..73d29cd59f 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -583,7 +583,6 @@ void CGE2Engine::feedSnail(Sprite *spr, Action snq, Hero *hero) { byte ptr = spr->_actionCtrl[snq]._ptr; CommandHandler::Command *comtab = spr->snList(snq); CommandHandler::Command *c = &comtab[ptr]; - CommandHandler::Command *p; CommandHandler::Command *q = &comtab[cnt]; warning("STUB: CGE2Engine::feedSnail()"); @@ -591,7 +590,8 @@ void CGE2Engine::feedSnail(Sprite *spr, Action snq, Hero *hero) { /* int pocFre = freePockets(hero->_ref & 1); int pocReq = 0; - for (p = c; p < q && p->_commandType != kCmdNext; p++) { // scan commands + CommandHandler::Command *p = c; + for (; p < q && p->_commandType != kCmdNext; p++) { // scan commands // drop from pocket? if ((p->_commandType == kCmdSend && p->_val != _now) || p->_commandType == kCmdGive) { |