summaryrefslogtreecommitdiff
path: root/src/core/User.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-01-07 17:23:09 +0300
committerGitHub <noreply@github.com>2020-01-07 17:23:09 +0300
commitf9316d9cc3cfb748366758c41cf02634b6df9a08 (patch)
treecb7dafc76cb2966ac86d908fd5d99c3b7c164cf0 /src/core/User.cpp
parent18de44e038c904e4de21f42a12afa188146587d1 (diff)
CPlayerPed & CMenuManager (#286)
Make Frontend great again!
Diffstat (limited to 'src/core/User.cpp')
-rw-r--r--src/core/User.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/User.cpp b/src/core/User.cpp
index 488d64be..0a8550cf 100644
--- a/src/core/User.cpp
+++ b/src/core/User.cpp
@@ -158,6 +158,9 @@ void COnscreenTimerEntry::ProcessForDisplayClock() {
void COnscreenTimerEntry::ProcessForDisplayCounter() {
uint32 counter = *(uint32*)&CTheScripts::ScriptSpace[m_nCounterOffset];
+
+ assert(!m_nType || counter <= 100);
+
sprintf(m_bCounterBuffer, "%d", counter);
}