ZVISION: Fix uninitialized scalar field (CID 1257085)

This commit is contained in:
Marisa-Chan 2014-12-19 17:04:04 +06:00
parent 7e3c270e49
commit 7a0b5982b1

View File

@ -832,6 +832,9 @@ bool ActionRestoreGame::execute() {
ActionRotateTo::ActionRotateTo(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
_time = 0;
_toPos = 0;
sscanf(line.c_str(), "%d, %d", &_toPos, &_time);
}