Fix fuckup

This commit is contained in:
JeremyStar™ 2024-04-03 20:08:26 +02:00
parent 517e36e95d
commit 8aa67a4444
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -58,7 +58,7 @@ func add_scene(sname: String, sclass: Node, type: CoreTypes.SceneType) -> bool:
logger.errorf("sms", "Scene with name \"" + sname + "\" already exists") logger.errorf("sms", "Scene with name \"" + sname + "\" already exists")
return false return false
if typeof(sclass) != TYPE_OBJECT or !sclass.is_class("Node"): if typeof(sclass) != TYPE_OBJECT or !sclass.is_class("Node"):
logger.errorf("sms", "Scene class \"" + sname + "\" is not of type Node" logger.errorf("sms", "Scene class \"" + sname + "\" is not of type Node")
return false return false
sclass.name = sname sclass.name = sname
match(type): match(type):