Переглянути джерело

Fixed failed apple counting

Signed-off-by: Michał Pełka <[email protected]>
Michał Pełka 2 роки тому
батько
коміт
3954d82aaf

+ 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();
     }