From b622854d85852987f3f59baaa969de3c38fb0191 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:13:17 +0200 Subject: [PATCH] Squirrel: fix struct name bufCopy is actually bufPos as this indicated the current pos in the text buffer as it gets parsed out. --- r5dev/vscript/languages/squirrel_re/include/sqstate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/vscript/languages/squirrel_re/include/sqstate.h b/r5dev/vscript/languages/squirrel_re/include/sqstate.h index 01aefb85..1d6c600f 100644 --- a/r5dev/vscript/languages/squirrel_re/include/sqstate.h +++ b/r5dev/vscript/languages/squirrel_re/include/sqstate.h @@ -75,13 +75,13 @@ struct SQBufState { const SQChar* buf; const SQChar* bufTail; - const SQChar* bufCopy; + const SQChar* bufPos; SQBufState(const SQChar* code) { buf = code; bufTail = code + strlen(code); - bufCopy = code; + bufPos = code; } }; #endif // SQSTATE_H \ No newline at end of file