From 545d35b4d191e19b0a4515a7191b47ff7f3b467b Mon Sep 17 00:00:00 2001 From: Jhett Black <10942655+jhett12321@users.noreply.github.com> Date: Sun, 12 Jan 2025 19:13:16 +0100 Subject: [PATCH] Fix extension methods. (#1809) --- Plugins/SWIG/SWIG_DotNET/DotNETExtensions.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/SWIG/SWIG_DotNET/DotNETExtensions.i b/Plugins/SWIG/SWIG_DotNET/DotNETExtensions.i index 42761558f3..4c6b15f1fb 100644 --- a/Plugins/SWIG/SWIG_DotNET/DotNETExtensions.i +++ b/Plugins/SWIG/SWIG_DotNET/DotNETExtensions.i @@ -56,7 +56,7 @@ SWIG_DOTNET_EXTENSIONS %typemap(cscode, noblock=1) CExoString { SWIG_DOTNET_EXTENSIONS - public CExoString(string source) : this(source.GetNullTerminatedString()) { + public CExoString(string source) : this(NWNX.NET.Native.StringUtils.GetNullTerminatedString(source)) { } /// @@ -72,7 +72,7 @@ SWIG_DOTNET_EXTENSIONS %typemap(cscode, noblock=1) CResRef { SWIG_DOTNET_EXTENSIONS - public CResRef(string source) : this(source.GetNullTerminatedString()) { + public CResRef(string source) : this(NWNX.NET.Native.StringUtils.GetNullTerminatedString(source)) { } ///