diff --git a/RecastDemo/Source/SampleInterfaces.cpp b/RecastDemo/Source/SampleInterfaces.cpp index 9736f0a..44b306b 100644 --- a/RecastDemo/Source/SampleInterfaces.cpp +++ b/RecastDemo/Source/SampleInterfaces.cpp @@ -20,6 +20,8 @@ BuildContext::BuildContext() : m_messageCount(0), m_textPoolSize(0) { + memset(m_messages, 0, sizeof(char*) * MAX_MESSAGES); + resetTimers(); }