Răsfoiți Sursa

Merge branch 'next' of https://github.com/blackberry/GamePlay into next

Steve Grenier 13 ani în urmă
părinte
comite
ed9a3416fd
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      gameplay/src/Properties.cpp

+ 4 - 1
gameplay/src/Properties.cpp

@@ -134,13 +134,16 @@ void Properties::readProperties(FILE* file)
                 rc = strchr(line, '}');
 
                 // First token should be the property name.
-                name = strtok(line, " =\t");
+                name = strtok(line, "=");
                 if (name == NULL)
                 {
                     GP_ERROR("Error parsing properties file: attribute without name.");
                     return;
                 }
 
+                // Remove white-space from name.
+                name = trimWhiteSpace(name);
+
                 // Scan for next token, the property's value.
                 value = strtok(NULL, "=");
                 if (value == NULL)