1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

Merge branch 'off_by_one' into 'master'

Fix error reporting line numbers

See merge request OpenMW/openmw!2483
This commit is contained in:
psi29a 2022-10-24 18:41:20 +00:00
commit 2091a81e1b

View file

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