Fixed bug introduced by 2009-05-14T23:11:34Z!terraninfo@terraninfo.net

interpreting any non-empty value of boolean states as "true". Fixes
problem with 'all enemy units on Dark Forecast start poisoned'
This commit is contained in:
Iurii Chernyi 2009-05-19 17:11:46 +00:00
parent 7614f729c3
commit 8ea95583d1

View file

@ -1033,7 +1033,7 @@ void unit::set_state(const std::string& state, const std::string& value)
}
} else {
if (known_boolean_state_id!=STATE_UNKNOWN){
set_state(known_boolean_state_id,true);
set_state(known_boolean_state_id,utils::string_bool(value));
return;
}
states_[state] = value;