aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/pink/objects/handlers/handler_timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pink/objects/handlers/handler_timer.cpp b/engines/pink/objects/handlers/handler_timer.cpp
index 9fe9d8a4c8..757790ea64 100644
--- a/engines/pink/objects/handlers/handler_timer.cpp
+++ b/engines/pink/objects/handlers/handler_timer.cpp
@@ -61,7 +61,7 @@ void HandlerTimerActions::toConsole() {
void HandlerTimerActions::handle(Actor *actor) {
Handler::handle(actor);
- if (!actor->isPlaying() && _actions.size()) {
+ if (!actor->isPlaying() && !_actions.empty()) {
Common::RandomSource &rnd = actor->getPage()->getGame()->getRnd();
uint index = rnd.getRandomNumber(_actions.size() - 1);
Action *action = actor->findAction(_actions[index]);