diff --git a/src/game/client/lineinput.cpp b/src/game/client/lineinput.cpp index 99df057d4..f6a946a02 100644 --- a/src/game/client/lineinput.cpp +++ b/src/game/client/lineinput.cpp @@ -677,7 +677,7 @@ void CLineInputNumber::SetInteger(int Number, int Base) dbg_assert(false, "Base unsupported"); return; } - if(str_comp(aBuf, GetDisplayedString()) != 0) + if(str_comp(aBuf, GetString()) != 0) Set(aBuf); } @@ -690,7 +690,7 @@ void CLineInputNumber::SetFloat(float Number) { char aBuf[32]; str_format(aBuf, sizeof(aBuf), "%.3f", Number); - if(str_comp(aBuf, GetDisplayedString()) != 0) + if(str_comp(aBuf, GetString()) != 0) Set(aBuf); }