Fix compilation warnings
This commit is contained in:
@@ -253,6 +253,14 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
// Ignore deprecation warnings in defaults
|
||||
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
||||
RenderView();
|
||||
RenderView(const RenderView& other) = default;
|
||||
RenderView(RenderView&& other) = default;
|
||||
RenderView& operator=(const RenderView& other) = default;
|
||||
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
// Set up view with custom params
|
||||
// @param viewProjection View * Projection matrix
|
||||
void SetUp(const Matrix& viewProjection);
|
||||
|
||||
@@ -1381,7 +1381,7 @@ void NetworkInternal::OnNetworkMessageObjectSpawn(NetworkEvent& event, NetworkCl
|
||||
// Reuse parent object as prefab instance
|
||||
prefabInstance = parentActor;
|
||||
}
|
||||
else if (parentActor = Scripting::TryFindObject<Actor>(rootItem.ParentId))
|
||||
else if ((parentActor = Scripting::TryFindObject<Actor>(rootItem.ParentId)))
|
||||
{
|
||||
// Try to find that spawned prefab (eg. prefab with networked script was spawned before so now we need to link it)
|
||||
for (Actor* child : parentActor->Children)
|
||||
|
||||
Reference in New Issue
Block a user