mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
config: bail out on invalid values
Avoid srcTree being filled with un-initialized values such as bools, ints, floats...
This commit is contained in:
parent
66b09a64a5
commit
fe156e2984
@ -155,6 +155,7 @@ bool GameConfig::parseConfig(
|
|||||||
} else {
|
} else {
|
||||||
success = false;
|
success = false;
|
||||||
RW_MESSAGE(e.what());
|
RW_MESSAGE(e.what());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user