commit 7d43dc59
Fixed wrong stop comparison
Changed files
| M | source/code/BlockGame.cpp before |
diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp
index dbff5b1..e8aebfe 100644
--- a/source/code/BlockGame.cpp
+++ b/source/code/BlockGame.cpp
@@ -57,7 +57,7 @@ static string itoa2(int num) {
* @param gameStartedAt Tick the game was started at.
*/
static void capMaxStops(int& stops, unsigned int ticks, unsigned int gameStartedAt) {
- if (ticks < gameStartedAt || stops = 0) {
+ if (ticks < gameStartedAt || stops == 0) {
//Game not started or not stops, do nothing
return;
}