This commit is contained in:
David Markowitz 2023-06-13 19:47:14 -07:00
parent e389a619ad
commit d8e2e92428

View File

@ -786,6 +786,7 @@ void Entity::UpdateXMLDoc(tinyxml2::XMLDocument* doc) {
CppScripts::Script* Entity::GetScript() const {
auto* scriptComponent = GetComponent<ScriptComponent>();
if (!scriptComponent) return CppScripts::invalidScript.get();
auto* script = scriptComponent->GetScript();
DluAssert(script != nullptr);
return script;