Browse Source

Romancing the node...

Josh Engebretson 9 years ago
parent
commit
26455c5cc4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Butterflies/CSharp/Resources/Components/Butterfly.cs

+ 2 - 1
Butterflies/CSharp/Resources/Components/Butterfly.cs

@@ -65,8 +65,9 @@ public class Butterfly : CSComponent
             // TODO: We need to remove the component first, then the Node
             // The component removal removes the component from the scene Update
             // Which at the time of writing this comment, Node.Remove is not
+            var node = Node;
             Remove();
-            Node.Remove();
+            node.Remove();
         }
 
     }