aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress
diff options
context:
space:
mode:
authorJulien Templier2010-10-26 12:09:38 +0000
committerJulien Templier2010-10-26 12:09:38 +0000
commitbdbd0c1417e54080bafe0bd601715152366f3440 (patch)
treee732c79e1b2ee38067571187acc575ed573c7fb8 /engines/lastexpress
parentdc4a22ed7d1a43703b0a6f2d87480ce948bc20a8 (diff)
downloadscummvm-rg350-bdbd0c1417e54080bafe0bd601715152366f3440.tar.gz
scummvm-rg350-bdbd0c1417e54080bafe0bd601715152366f3440.tar.bz2
scummvm-rg350-bdbd0c1417e54080bafe0bd601715152366f3440.zip
LASTEXPRESS: Do not delete Clock & TrainLine frames in clear() functions
svn-id: r53846
Diffstat (limited to 'engines/lastexpress')
-rw-r--r--engines/lastexpress/game/menu.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/lastexpress/game/menu.cpp b/engines/lastexpress/game/menu.cpp
index dd59f0384c..09e57a8ef6 100644
--- a/engines/lastexpress/game/menu.cpp
+++ b/engines/lastexpress/game/menu.cpp
@@ -212,10 +212,10 @@ Clock::~Clock() {
}
void Clock::clear() {
- getScenes()->removeAndRedraw(&_frameMinutes, false);
- getScenes()->removeAndRedraw(&_frameHour, false);
- getScenes()->removeAndRedraw(&_frameSun, false);
- getScenes()->removeAndRedraw(&_frameDate, false);
+ getScenes()->removeFromQueue(_frameMinutes);
+ getScenes()->removeFromQueue(_frameHour);
+ getScenes()->removeFromQueue(_frameSun);
+ getScenes()->removeFromQueue(_frameDate);
}
void Clock::draw(uint32 time) {
@@ -297,8 +297,8 @@ TrainLine::~TrainLine() {
}
void TrainLine::clear() {
- getScenes()->removeAndRedraw(&_frameLine1, false);
- getScenes()->removeAndRedraw(&_frameLine2, false);
+ getScenes()->removeFromQueue(_frameLine1);
+ getScenes()->removeFromQueue(_frameLine2);
}
// Draw the train line at the time