mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 03:05:34 +00:00
Fix textdomain id computation when there are >=128 textdomains and char is signed (as on windows).
This commit is contained in:
parent
49a5acee50
commit
a1bbe66acb
@ -115,7 +115,7 @@ void t_string_base::walker::update()
|
||||
end_ = string_.size();
|
||||
}
|
||||
|
||||
id = string_[begin_ + 1] + string_[begin_ + 2] * 256;
|
||||
id = static_cast<unsigned int>(string_[begin_ + 1]) + static_cast<unsigned int>(string_[begin_ + 2]) * 256;
|
||||
if(id >= id_to_textdomain.size()) {
|
||||
ERR_CF << "Error: invalid string: " << string_ << std::endl;
|
||||
begin_ = string_.size();
|
||||
|
Loading…
x
Reference in New Issue
Block a user