aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/startrek/rooms/demon6.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/startrek/rooms/demon6.cpp b/engines/startrek/rooms/demon6.cpp
index de3b4b41b0..c56ad6c5c4 100644
--- a/engines/startrek/rooms/demon6.cpp
+++ b/engines/startrek/rooms/demon6.cpp
@@ -568,11 +568,10 @@ int Room::demon6ShowCaseProcessSelection(Sprite *sprites, Sprite *clickedSprite,
// does check the clock cycle, but doesn't do a proper comparison with
// it.)
TrekEvent event;
-
- while (event.type != TREKEVENT_TICK) {
+ do {
if (!_vm->popNextEvent(&event))
continue;
- }
+ } while (event.type != TREKEVENT_TICK);
clickedSprite->pos.y++;
}