ZVISION: Fix uninitialized scalar field (CID 1257062)

This commit is contained in:
Marisa-Chan 2014-12-19 16:22:57 +06:00
parent 56f7be8ab6
commit f8c1b1eb28

View File

@ -95,6 +95,9 @@ bool ActionAssign::execute() {
ActionAttenuate::ActionAttenuate(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
_key = 0;
_attenuation = 0;
sscanf(line.c_str(), "%u, %d", &_key, &_attenuation);
}