ide/Project: Fixed bad option check causing corrupt Makefiles in 64 bit Linux
authorJerome St-Louis <jerome@ecere.com>
Fri, 22 Feb 2013 12:24:51 +0000 (07:24 -0500)
committerJerome St-Louis <jerome@ecere.com>
Fri, 22 Feb 2013 12:24:51 +0000 (07:24 -0500)
ide/src/project/ProjectNode.ec

index db79e25..0fe7f41 100644 (file)
@@ -2399,8 +2399,8 @@ static ProjectOptions BlendFileConfigPlatformProjectOptions(ProjectNode node, Pr
       mergeValues = true;
       caseSensitive = true;
       bool OptionCheck(ProjectOptions options, int option) {
-         String string = *(String*)((byte *)options + option);
-         return string && string[0];
+         Array<String> strings = *(Array<String>*)((byte *)options + option);
+         return strings && strings.count;
       }
       bool OptionSet(ProjectOptions options, int option) {
          Array<String> strings = *(Array<String>*)((byte *)options + option);