mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
use get
This commit is contained in:
parent
e389a619ad
commit
d8e2e92428
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user