You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/unit/upgrade.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -546,7 +546,7 @@ static int CclAcquireTrait(lua_State *l)
546
546
if (!strncmp(ident, "upgrade-", 8)) {
547
547
TraitAcquire(*unit, CUpgrade::Get(ident));
548
548
unit->Trait = ident;
549
-
} elseif (ident == "") {
549
+
} elseif (strlen(ident) == 0) {
550
550
if (!unit->Trait.empty()) { //remove previous trait, if any
551
551
if (!GameSettings.NoRandomness || unit->Type->BoolFlag[HERO_INDEX].value) { // if in no randomness setting, only change trait modifiers if the unit is a hero
0 commit comments