[Script] Fix compilation

This commit is contained in:
FutureRave 2021-11-13 20:55:22 +00:00
parent 5c69267ba3
commit c3dd5015e1
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -401,7 +401,7 @@ namespace Components
const char* Script::GetCodePosForParam(int index)
{
if (index >= Game::scrVmPub->outparamcount)
if (static_cast<unsigned int>(index) >= Game::scrVmPub->outparamcount)
{
Game::Scr_Error("^1GetCodePosForParam: Index is out of range!\n");
return "";