Add missing changes

This commit is contained in:
Wojtek Figat
2021-06-17 14:17:36 +02:00
parent b510e3fcc5
commit 1fedad5dfe
2 changed files with 2 additions and 1 deletions

View File

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

View File

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