From d3619af4bdb4bc234aeb6face45eccd154cc1e1b Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sat, 4 Nov 2023 17:15:35 -0400 Subject: [PATCH] Change regular getStatsName() to fetch the raw name --- src/statsdef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statsdef.h b/src/statsdef.h index c94545b3d34..e47fc2bc40b 100644 --- a/src/statsdef.h +++ b/src/statsdef.h @@ -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)