Fix compilation warnings

This commit is contained in:
Wojtek Figat
2023-02-19 14:35:47 +01:00
parent 0d813aee90
commit 9429be0830
2 changed files with 9 additions and 1 deletions

View File

@@ -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);

View File

@@ -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)