Skip to content

Commit

Permalink
Fixed featuremask reading in CItemMultiCustom.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbnolok committed Sep 21, 2024
1 parent 9f6466e commit e4b70e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/items/CItemMultiCustom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,8 @@ bool CItemMultiCustom::LoadValidItems()
g_Log.EventWarn("No FeatureMask in file '%s', row=%d.\n", sm_szItemFiles[i][0], curCSV.GetCurrentRow());
continue;
}
iconv = Str_ToU(strCurRow.c_str(), 10);
iconv = Str_ToU(strFeatureMask.c_str(), 10);

if (!iconv.has_value())
{
g_Log.EventWarn("Invalid FeatureMask number in file '%s', row=%d. Skipping.\n", sm_szItemFiles[i][0], curCSV.GetCurrentRow());
Expand Down

0 comments on commit e4b70e2

Please sign in to comment.