Skip to content

Commit 820fcd3

Browse files
Fixes type.
1 parent 188c650 commit 820fcd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RootScriptNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class RootScriptNode extends ScriptNode {
3232
*/
3333
static getRoot(gameObject: Phaser.GameObjects.GameObject, key = "scripts") {
3434

35-
return (gameObject as any)[`RootScript__${key}`] as RootScript;
35+
return (gameObject as any)[`RootScript__${key}`] as RootScriptNode;
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)