Ver Fonte

In the properties file if we have

property = value

and the value started with an = sign then it would fail.  Fixed so that the token looks for any character.
Dale Ducharme há 12 anos atrás
pai
commit
23c5b38f03
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      gameplay/src/Properties.cpp

+ 1 - 1
gameplay/src/Properties.cpp

@@ -184,7 +184,7 @@ void Properties::readProperties(Stream* stream)
                 name = trimWhiteSpace(name);
 
                 // Scan for next token, the property's value.
-                value = strtok(NULL, "=");
+                value = strtok(NULL, "");
                 if (value == NULL)
                 {
                     GP_ERROR("Error parsing properties file: attribute with name ('%s') but no value.", name);