Skip to content

Commit

Permalink
Fix extension methods. (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhett12321 authored Jan 12, 2025
1 parent 49cdb72 commit 545d35b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugins/SWIG/SWIG_DotNET/DotNETExtensions.i
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
}

/// <summary>
Expand All @@ -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)) {
}

/// <summary>
Expand Down

0 comments on commit 545d35b

Please sign in to comment.