[Script] Make index signed to keep consistency
This commit is contained in:
parent
4cb8cdfca3
commit
5c69267ba3
@ -399,7 +399,7 @@ namespace Components
|
||||
return Game::Scr_GetNumParam();
|
||||
}
|
||||
|
||||
const char* Script::GetCodePosForParam(unsigned int index)
|
||||
const char* Script::GetCodePosForParam(int index)
|
||||
{
|
||||
if (index >= Game::scrVmPub->outparamcount)
|
||||
{
|
||||
@ -407,7 +407,7 @@ namespace Components
|
||||
return "";
|
||||
}
|
||||
|
||||
const auto value = &Game::scrVmPub->top[0 - index];
|
||||
const auto value = &Game::scrVmPub->top[-index];
|
||||
|
||||
if (value->type != Game::VAR_FUNCTION)
|
||||
{
|
||||
|
@ -72,7 +72,7 @@ namespace Components
|
||||
|
||||
static unsigned int SetExpFogStub();
|
||||
|
||||
static const char* GetCodePosForParam(unsigned int index);
|
||||
static const char* GetCodePosForParam(int index);
|
||||
static void GetReplacedPos(const char* pos);
|
||||
static void SetReplacedPos(const char* what, const char* with);
|
||||
static void VMExecuteInternalStub();
|
||||
|
Loading…
Reference in New Issue
Block a user