diff --git a/Source/Engine/Level/Scene/Lightmap.cpp b/Source/Engine/Level/Scene/Lightmap.cpp index 88fa88b5a..2559005a9 100644 --- a/Source/Engine/Level/Scene/Lightmap.cpp +++ b/Source/Engine/Level/Scene/Lightmap.cpp @@ -2,6 +2,7 @@ #include "Lightmap.h" #include "Scene.h" +#include "Engine/Core/Log.h" #include "Engine/Platform/FileSystem.h" #include "Engine/Content/Content.h" #include "Engine/Level/Level.h" diff --git a/Source/Engine/UI/UIControl.cpp b/Source/Engine/UI/UIControl.cpp index b9fef02f8..6afdd77b3 100644 --- a/Source/Engine/UI/UIControl.cpp +++ b/Source/Engine/UI/UIControl.cpp @@ -118,7 +118,7 @@ void UIControl::Deserialize(DeserializeStream& stream, ISerializeModifier* modif const auto controlMember = stream.FindMember("Control"); if (controlMember != stream.MemberEnd()) { - const StringAnsiView controlType(controlMember->value.GetString(), controlMember->value.GetStringLength()); + const StringAnsiView controlType(controlMember->value.GetStringAnsiView()); const auto type = Scripting::FindClass(controlType); if (type != nullptr) {