AGI: Fix Several GCC Compiler Warnings
This commit is contained in:
parent
5a519e19c6
commit
b3968ca39d
2 changed files with 6 additions and 4 deletions
|
@ -102,10 +102,11 @@ int AgiEngine::agiInit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear view table
|
// clear view table
|
||||||
for (i = 0; i < SCREENOBJECTS_MAX; i++)
|
for (i = 0; i < SCREENOBJECTS_MAX; i++) {
|
||||||
memset(&_game.screenObjTable[i], 0, sizeof(struct ScreenObjEntry));
|
_game.screenObjTable[i].reset();
|
||||||
|
}
|
||||||
|
|
||||||
memset(&_game.addToPicView, 0, sizeof(struct ScreenObjEntry));
|
_game.addToPicView.reset();
|
||||||
|
|
||||||
_words->clearEgoWords();
|
_words->clearEgoWords();
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,8 @@ struct ScreenObjEntry {
|
||||||
// end of motion related variables
|
// end of motion related variables
|
||||||
uint8 loop_flag;
|
uint8 loop_flag;
|
||||||
|
|
||||||
ScreenObjEntry() { memset(this, 0, sizeof(ScreenObjEntry)); }
|
void reset() { memset(this, 0, sizeof(ScreenObjEntry)); }
|
||||||
|
ScreenObjEntry() { reset(); }
|
||||||
}; // struct vt_entry
|
}; // struct vt_entry
|
||||||
|
|
||||||
} // End of namespace Agi
|
} // End of namespace Agi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue