mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed macro substitution.
It was retrieving the macro from the wrong string.
This commit is contained in:
parent
614c23d4f2
commit
525b0214a7
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ void FStringTable::InsertString(int langid, FName label, const FString &string)
|
|||
Printf("Bad macro in %s : %s\n", strlangid, label.GetChars());
|
||||
break;
|
||||
}
|
||||
FString macroname(string.GetChars() + index + 2, endindex - index - 2);
|
||||
FString macroname(te.strings[0].GetChars() + index + 2, endindex - index - 2);
|
||||
FStringf lookupstr("%s/%s", strlangid, macroname.GetChars());
|
||||
FStringf replacee("@[%s]", macroname.GetChars());
|
||||
FName lookupname(lookupstr, true);
|
||||
|
|
Loading…
Reference in a new issue