chore: update noninformative comments to be informative (#1407)

* better comments

* more comments
This commit is contained in:
David Markowitz
2024-01-10 20:57:41 -08:00
committed by GitHub
parent e0ddbce8e7
commit 66cc582a9a
7 changed files with 12 additions and 14 deletions

View File

@@ -46,11 +46,7 @@ CppScripts::Script* ScriptComponent::GetScript() {
}
void ScriptComponent::SetScript(const std::string& scriptName) {
//we don't need to delete the script because others may be using it :)
/*if (m_Client) {
m_Script = new InvalidScript();
return;
}*/
// Scripts are managed by the CppScripts class and are effecitvely singletons
// and they may also be used by other script components so DON'T delete them.
m_Script = CppScripts::GetScript(m_Parent, scriptName);
}