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:
parent
7614f729c3
commit
8ea95583d1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue