ZoneCodeGenerator: Fix being able to load strings for non const char pointers

This commit is contained in:
Jan 2019-12-04 13:48:15 +01:00
parent a1546f3080
commit ffda895f95

View File

@ -45,7 +45,11 @@ if ($TypeVarName(structure)$->$member.Member.Name$$PrintArrayIndices(reference)$
>>
LoadSinglePointer_String(context, structure, member, reference) ::= <%
$if(member.Member.VariableType.IsConst)$
varXString = &$TypeVarName(structure)$->$member.Member.Name$$PrintArrayIndices(reference)$;$\n$
$else$
varXString = const_cast<const char**>(&$TypeVarName(structure)$->$member.Member.Name$$PrintArrayIndices(reference)$);$\n$
$endif$
LoadXString(false);
%>