[Fix] Slight bug with loading mission variables.

This commit is contained in:
Allanis 2013-11-23 22:43:31 +00:00
parent b831e311e6
commit b172453841

View File

@ -300,11 +300,11 @@ int var_load(xmlNodePtr parent) {
var.type = MISN_VAR_NUM;
var.d.num = atoi(xml_get(cur));
}
else if(strcmp(str, "bool")) {
else if(strcmp(str, "bool")==0) {
var.type = MISN_VAR_BOOL;
var.d.b = atoi(xml_get(cur));
}
else if(strcmp(str, "str")) {
else if(strcmp(str, "str")==0) {
var.type = MISN_VAR_STR;
var.d.str = atoi(xml_get(cur));
} else {