1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 00:39:43 +00:00

fix line numbers being off by one for each jump block

This commit is contained in:
glassmancody.info 2022-10-24 08:40:33 -07:00
parent 4f5443118e
commit 87c0a6e6dc

View file

@ -109,6 +109,7 @@ namespace fx
if (level == 0)
{
mHead--;
mLine--;
auto sv = std::string_view{ start, static_cast<std::string_view::size_type>(mHead + 1 - start) };
mLastJumpBlock.content = sv;
return sv;