CScriptExtra: Eliminate sign conversion warnings
This commit is contained in:
parent
1b71d91ea7
commit
31a1de9191
|
@ -27,9 +27,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Data Manipulation
|
// 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();
|
auto it = mInstances.begin();
|
||||||
std::advance(it, Index);
|
std::advance(it, Index);
|
||||||
|
|
|
@ -27,7 +27,7 @@ protected:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CScriptExtra(CScriptObject *pInstance, CScene *pScene, CScriptNode *pParent = nullptr)
|
explicit CScriptExtra(CScriptObject *pInstance, CScene *pScene, CScriptNode *pParent = nullptr)
|
||||||
: CSceneNode(pScene, -1, pParent)
|
: CSceneNode(pScene, UINT32_MAX, pParent)
|
||||||
, mpScriptNode(pParent)
|
, mpScriptNode(pParent)
|
||||||
, mpInstance(pInstance)
|
, mpInstance(pInstance)
|
||||||
, mGame(pInstance->Template()->Game())
|
, mGame(pInstance->Template()->Game())
|
||||||
|
|
Loading…
Reference in New Issue