From c56982af18514f9dd216803849298fac6103a06e Mon Sep 17 00:00:00 2001 From: Franco Romaniello Date: Wed, 2 Dec 2020 19:32:11 +0100 Subject: [PATCH] Fix compatibility whit rg_hint_message (#583) When used reapi native rg_hint_message not work because tries to access to one pointer who not longer exists in CHintMessage::Send --- regamedll/dlls/hintmessage.cpp | 8 +++++++- regamedll/dlls/hintmessage.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/regamedll/dlls/hintmessage.cpp b/regamedll/dlls/hintmessage.cpp index 71f47d91..e3c2261d 100644 --- a/regamedll/dlls/hintmessage.cpp +++ b/regamedll/dlls/hintmessage.cpp @@ -2,7 +2,7 @@ CHintMessage::CHintMessage(const char *hintString, bool isHint, CUtlVector *args, float duration) { - m_hintString = hintString; + m_hintString = CloneString(hintString); m_duration = duration; m_isHint = isHint; @@ -16,6 +16,12 @@ CHintMessage::CHintMessage(const char *hintString, bool isHint, CUtlVector m_args; float m_duration;