diff options
author | Marisa-Chan | 2013-11-01 16:47:47 +0700 |
---|---|---|
committer | Marisa-Chan | 2013-11-01 16:47:47 +0700 |
commit | a35900142f6a316fde6463b470dbf97ce8426752 (patch) | |
tree | 72ebb7ae5f383ef6d9143b272a60098955ca3e7d /engines | |
parent | 7f166720372ef8e4fd95cc4622801d420a8669d6 (diff) | |
download | scummvm-rg350-a35900142f6a316fde6463b470dbf97ce8426752.tar.gz scummvm-rg350-a35900142f6a316fde6463b470dbf97ce8426752.tar.bz2 scummvm-rg350-a35900142f6a316fde6463b470dbf97ce8426752.zip |
ZVISION: ActionAdd must handle negative vallues.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/actions.cpp | 2 | ||||
-rw-r--r-- | engines/zvision/actions.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp index ea0d06b1d7..5af637f9be 100644 --- a/engines/zvision/actions.cpp +++ b/engines/zvision/actions.cpp @@ -45,7 +45,7 @@ namespace ZVision { ActionAdd::ActionAdd(ZVision *engine, const Common::String &line) : ResultAction(engine) { - sscanf(line.c_str(), "%*[^(](%u,%u)", &_key, &_value); + sscanf(line.c_str(), "%*[^(](%u,%d)", &_key, &_value); } bool ActionAdd::execute() { diff --git a/engines/zvision/actions.h b/engines/zvision/actions.h index cc32cc0b43..e2e57c3a74 100644 --- a/engines/zvision/actions.h +++ b/engines/zvision/actions.h @@ -94,7 +94,7 @@ public: private: uint32 _key; - uint _value; + int _value; }; class ActionAssign : public ResultAction { |