Ver Fonte

Fix intermittent Android crash on startup. Rewind before iterating through properties.

Ken Whatmough há 13 anos atrás
pai
commit
370bd76e71
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      gameplay/src/Game.cpp

+ 1 - 0
gameplay/src/Game.cpp

@@ -577,6 +577,7 @@ void Game::loadGamepads()
     {
     {
         // Check if there are any virtual gamepads included in the .config file.
         // Check if there are any virtual gamepads included in the .config file.
         // If there are, create and initialize them.
         // If there are, create and initialize them.
+        _properties->rewind();
         Properties* inner = _properties->getNextNamespace();
         Properties* inner = _properties->getNextNamespace();
         while (inner != NULL)
         while (inner != NULL)
         {
         {