mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 18:11:05 +00:00
Fix a precedence-order issue
This commit is contained in:
parent
f11504726f
commit
55a83383ef
@ -1539,7 +1539,8 @@ public:
|
||||
char resi[16];
|
||||
snprintf(resi,sizeof(resi),"% 4d%%",resistance); // range: -100% .. +70%
|
||||
std::string resist = resi;
|
||||
if (const size_t pos = resist.find('-') != std::string::npos)
|
||||
const size_t pos = resist.find('-');
|
||||
if (pos != std::string::npos)
|
||||
resist.replace(pos, 1, utils::unicode_minus);
|
||||
std::string color;
|
||||
if (resistance < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user