diff options
Diffstat (limited to 'src/controller.cpp')
-rw-r--r-- | src/controller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controller.cpp b/src/controller.cpp index 42a64b66..d71461f2 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -33,8 +33,8 @@ void Controlled::update() { if (mAction != DEAD) { - Point randomPos = { rand() % 320 + 720, - rand() % 320 + 840 }; + Point randomPos( rand() % 320 + 720, + rand() % 320 + 840 ); setDestination(randomPos); mCountDown = 10 + rand() % 10; |