diff options
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index 2f7103bf18..a9b19eaf2b 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -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); } |