diff --git a/src/Components/Modules/Script.cpp b/src/Components/Modules/Script.cpp index fa97048f..d8c7b955 100644 --- a/src/Components/Modules/Script.cpp +++ b/src/Components/Modules/Script.cpp @@ -401,7 +401,7 @@ namespace Components const char* Script::GetCodePosForParam(int index) { - if (index >= Game::scrVmPub->outparamcount) + if (static_cast(index) >= Game::scrVmPub->outparamcount) { Game::Scr_Error("^1GetCodePosForParam: Index is out of range!\n"); return "";