Skip to content

Commit

Permalink
Change regular getStatsName() to fetch the raw name
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Nov 4, 2023
1 parent fd19430 commit e6e29de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statsdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ struct BASE_STATS
size_t index = 0; ///< Index into containing array
};

#define getStatsName(_psStats) ((_psStats)->name.isEmpty() ? "" : gettext((_psStats)->name.toUtf8().c_str()))
#define getStatsName(_psStats) ((_psStats)->name.isEmpty() ? "" : (_psStats)->name.toUtf8().c_str())
#define getLocalizedStatsName(_psStats) ((_psStats)->name.isEmpty() ? "" : gettext((_psStats)->name.toUtf8().c_str()))
#define getID(_psStats) (_psStats)->id.toUtf8().c_str()
#define checkIfZNullStat(_psStats) ((_psStats)->id.toUtf8().find("ZNULL") != std::string::npos)
Expand Down

0 comments on commit e6e29de

Please sign in to comment.