Browse Source

Fixed failed apple counting

Signed-off-by: Michał Pełka <[email protected]>
Michał Pełka 2 years ago
parent
commit
3954d82aaf
1 changed files with 3 additions and 4 deletions
  1. 3 4
      Project/Gem/Source/DemoStatistics/DemoStatisticsComponent.cpp

+ 3 - 4
Project/Gem/Source/DemoStatistics/DemoStatisticsComponent.cpp

@@ -62,10 +62,9 @@ namespace AppleKraken
         if (IsFailed(appleEvent))
         {
             m_applesFailed++;
-            return;
-        }   
-
-        m_applesGathered++;
+        }else{
+            m_applesGathered++;
+        }
         DisplayNumberOfApples();
     }