Merge branch 'getscene-check-return' of https://github.com/Tryibion/FlaxEngine into Tryibion-getscene-check-return
This commit is contained in:
@@ -123,6 +123,7 @@ public:
|
|||||||
/// <returns>The scene object (loaded).</returns>
|
/// <returns>The scene object (loaded).</returns>
|
||||||
API_FUNCTION() static Scene* GetScene(int32 index)
|
API_FUNCTION() static Scene* GetScene(int32 index)
|
||||||
{
|
{
|
||||||
|
CHECK_RETURN(index < GetScenesCount(), nullptr);
|
||||||
return Scenes[index];
|
return Scenes[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user