aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorwhiterandrek2018-05-13 11:20:19 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commitcdcb8f5ec61b1cb63113d2e78804dc80ddf210c4 (patch)
tree2a875cb73bd53e4f8f16eb14c3f3ada15a77eb63 /engines
parent23157a6450dfb95d3200d6405c7524352f110e71 (diff)
downloadscummvm-rg350-cdcb8f5ec61b1cb63113d2e78804dc80ddf210c4.tar.gz
scummvm-rg350-cdcb8f5ec61b1cb63113d2e78804dc80ddf210c4.tar.bz2
scummvm-rg350-cdcb8f5ec61b1cb63113d2e78804dc80ddf210c4.zip
PINK: changed size method to empty to improve readability
Diffstat (limited to 'engines')
-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]);