CScriptExtra: Eliminate sign conversion warnings

This commit is contained in:
Lioncash 2020-06-18 06:50:17 -04:00
parent 1b71d91ea7
commit 31a1de9191
2 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,9 @@ public:
}
// Data Manipulation
void AddInstance(CScriptObject *pObject, uint32 Index = -1)
void AddInstance(CScriptObject *pObject, uint32 Index = UINT32_MAX)
{
if (Index != -1 && Index < mInstances.size())
if (Index != UINT32_MAX && Index < mInstances.size())
{
auto it = mInstances.begin();
std::advance(it, Index);

View File

@ -27,7 +27,7 @@ protected:
public:
explicit CScriptExtra(CScriptObject *pInstance, CScene *pScene, CScriptNode *pParent = nullptr)
: CSceneNode(pScene, -1, pParent)
: CSceneNode(pScene, UINT32_MAX, pParent)
, mpScriptNode(pParent)
, mpInstance(pInstance)
, mGame(pInstance->Template()->Game())