From 48d0f53bc1109b4512bfb15a40957b61012fa4c6 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Tue, 29 Jul 2025 13:46:54 -0500 Subject: [PATCH] Fix VScript string variants not being assigned on new SDK --- src/public/vscript/variant.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/public/vscript/variant.h b/src/public/vscript/variant.h index b7bd48a1..8e0155d9 100644 --- a/src/public/vscript/variant.h +++ b/src/public/vscript/variant.h @@ -955,7 +955,12 @@ inline bool CVariantBase::AssignTo( const char **pszString ) co return NULL; } +#ifdef MAPBASE_VSCRIPT + *pszString = m_pszString; + return true; +#else return m_pszString; +#endif }