From cdcb8f5ec61b1cb63113d2e78804dc80ddf210c4 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Sun, 13 May 2018 11:20:19 +0300 Subject: PINK: changed size method to empty to improve readability --- engines/pink/objects/handlers/handler_timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/pink') 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]); -- cgit v1.2.3