ZVISION: Fix uninitialized scalar field (CID 1257058)

This commit is contained in:
Marisa-Chan 2014-12-19 15:44:41 +06:00
parent f9946b726f
commit cd2612a54e

View File

@ -240,6 +240,9 @@ bool ActionDisableVenus::execute() {
ActionDisplayMessage::ActionDisplayMessage(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
_control = 0;
_msgid = 0;
sscanf(line.c_str(), "%hd %hd", &_control, &_msgid);
}