PhysX
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -251,7 +251,7 @@ namespace PhysX
|
||||
|
||||
if (sceneItr != m_sceneList.end())
|
||||
{
|
||||
return AzPhysics::SceneHandle((*sceneItr)->GetId(), AZStd::distance(m_sceneList.begin(), sceneItr));
|
||||
return AzPhysics::SceneHandle((*sceneItr)->GetId(), static_cast<AzPhysics::SceneIndex>(AZStd::distance(m_sceneList.begin(), sceneItr)));
|
||||
}
|
||||
return AzPhysics::InvalidSceneHandle;
|
||||
}
|
||||
@@ -312,7 +312,7 @@ namespace PhysX
|
||||
{
|
||||
m_sceneRemovedEvent.Signal(handle);
|
||||
m_sceneList[index].reset();
|
||||
m_freeSceneSlots.push(index);
|
||||
m_freeSceneSlots.push(static_cast<AzPhysics::SceneIndex>(index));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user