aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/smush/smush_player.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp
index 8c5554b9c2..8dd4451627 100644
--- a/engines/scumm/smush/smush_player.cpp
+++ b/engines/scumm/smush/smush_player.cpp
@@ -222,16 +222,17 @@ static StringResource *getStrings(ScummEngine *vm, const char *file, bool is_enc
}
void SmushPlayer::timerCallback(void *refCon) {
- ((SmushPlayer *)refCon)->parseNextFrame();
+ SmushPlayer *sp = (SmushPlayer *)refCon;
+ sp->parseNextFrame();
#ifdef _WIN32_WCE
- ((SmushPlayer *)refCon)->_inTimer = true;
- ((SmushPlayer *)refCon)->_inTimerCount++;
+ sp->_inTimer = true;
+ sp->_inTimerCount++;
#endif
#ifdef __SYMBIAN32__
- if (((SmushPlayer *)refCon)->_closeOnTextTick) {
- delete ((SmushPlayer *)refCon)->_base;
- ((SmushPlayer *)refCon)->_base = NULL;
- ((SmushPlayer *)refCon)->_closeOnTextTick = false;
+ if (sp->_closeOnTextTick) {
+ delete sp->_base;
+ sp->_base = NULL;
+ sp->_closeOnTextTick = false;
}
#endif
}