diff options
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/actions.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp index 689d5408bf..d1f5b93431 100644 --- a/engines/zvision/actions.cpp +++ b/engines/zvision/actions.cpp @@ -145,10 +145,14 @@ bool ActionPreloadAnimation::execute(ZVision *engine) { ////////////////////////////////////////////////////////////////////////////// ActionPlayAnimation::ActionPlayAnimation(const Common::String &line) { + char fileName[25]; + // The two %*u are always 0 and dont seem to have a use sscanf(line.c_str(), ":animplay:%u(%s %u %u %u %u %u %u %u %*u %*u %u %u)", - &_key, &_x, &_y, &_width, &_height, &_start, &_end, &_loop, &_mask, &_framerate); + &_key, fileName, &_x, &_y, &_width, &_height, &_start, &_end, &_loop, &_mask, &_framerate); + + _fileName = Common::String(fileName); } ResultAction *ActionPlayAnimation::clone() const { |