diff --git a/src/Components/Modules/ScriptExtension.cpp b/src/Components/Modules/ScriptExtension.cpp index e156a5d0..086d3a7a 100644 --- a/src/Components/Modules/ScriptExtension.cpp +++ b/src/Components/Modules/ScriptExtension.cpp @@ -186,7 +186,7 @@ namespace Components Script::AddFunction("IsEndStr", []() // gsc: IsEndStr(, ) { const auto* s1 = Game::Scr_GetString(0); - const auto* s2 = Game::Scr_GetString(0); + const auto* s2 = Game::Scr_GetString(1); if (s1 == nullptr || s2 == nullptr) {