mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +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());
|
Printf("Bad macro in %s : %s\n", strlangid, label.GetChars());
|
||||||
break;
|
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 lookupstr("%s/%s", strlangid, macroname.GetChars());
|
||||||
FStringf replacee("@[%s]", macroname.GetChars());
|
FStringf replacee("@[%s]", macroname.GetChars());
|
||||||
FName lookupname(lookupstr, true);
|
FName lookupname(lookupstr, true);
|
||||||
|
|
Loading…
Reference in a new issue