mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 18:39:39 +00:00
addLineDirectivesAfterConditionalBlocks move check for npos to catch all npos
This commit is contained in:
parent
1995e43b46
commit
2ed12a398d
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ namespace Shader
|
||||||
foundPos = source.find_first_of("\n\r", foundPos);
|
foundPos = source.find_first_of("\n\r", foundPos);
|
||||||
foundPos = source.find_first_not_of("\n\r", foundPos);
|
foundPos = source.find_first_not_of("\n\r", foundPos);
|
||||||
|
|
||||||
|
if (foundPos == std::string::npos)
|
||||||
|
break;
|
||||||
|
|
||||||
size_t lineDirectivePosition = source.rfind("#line", foundPos);
|
size_t lineDirectivePosition = source.rfind("#line", foundPos);
|
||||||
int lineNumber;
|
int lineNumber;
|
||||||
if (lineDirectivePosition != std::string::npos)
|
if (lineDirectivePosition != std::string::npos)
|
||||||
|
|
Loading…
Reference in a new issue