summaryrefslogtreecommitdiff
path: root/src/core/User.cpp
diff options
context:
space:
mode:
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);
}