size_t needs stoul not stoull
Some checks failed
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 7m25s
Emscripten Build / UnitTesting (push) Failing after 8m35s

This commit is contained in:
AMay 2026-05-15 19:52:40 -05:00
parent 65e7520dab
commit 10c949779d
2 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,7 @@ const std::string Ability::GetDescriptionWithPlayerModifiers()const{
std::vector<std::string>tokens{util::Tokenize(variableName,'[')};
if(tokens.size()!=2)ERR("[] variable syntax only allows 2 arguments. Ex. Key[ind]. Arguments found: "<<tokens.size());
std::string separatorKey{tokens.at(0)};
size_t index{stoull(tokens.at(1))};
size_t index{stoul(tokens.at(1))};
if(!data.HasProperty(separatorKey))return false; //Could not be found in this section, will need to seek in another location.
AddToDescription(specialValCol.toHTMLColorCode()+data.GetProperty(separatorKey).GetString(index)+WHITE.toHTMLColorCode());
return true;

View File

@ -59,6 +59,8 @@ No damage / No loadout items used / Defeat All
Fix coloring of selected git blame items
TODO Add constructor for safemaps.
DEMO
====