mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Fix not correct adding input suffix when expanding nested macro
This commit is contained in:
parent
70d4d77266
commit
edb88273e7
@ -837,8 +837,8 @@ void DefinesStreamProxy::ProcessNestedMacros(ParserLine& line, unsigned& linePos
|
||||
if (usesDefines)
|
||||
{
|
||||
// Make sure we account for all text between the last macro and the end
|
||||
if (lastDefineEnd < line.m_line.size())
|
||||
ss << std::string(line.m_line, lastDefineEnd, line.m_line.size() - lastDefineEnd);
|
||||
if (lastDefineEnd < input.size())
|
||||
ss << std::string(input, lastDefineEnd, input.size() - lastDefineEnd);
|
||||
input = ss.str();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user