mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
CGE2: Move an unused variable in a STUB clock, initialize it (in the comment). That fixes a warning
This commit is contained in:
parent
7ecb734a6a
commit
bea9e0532e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user