Skip to content

Commit 2fade88

Browse files
ptlisraulsntos
andauthored
Fix subject of switch statement in C# _Notification example
Co-authored-by: Raul Santos <[email protected]>
1 parent 567cd55 commit 2fade88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/best_practices/godot_notifications.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ nodes that one might create at runtime.
362362

363363
public override void _Notification(int what)
364364
{
365-
switch (what)
365+
switch ((long)what)
366366
{
367367
case NotificationParented:
368368
_parentCache = GetParent();

0 commit comments

Comments
 (0)