From 5ff4e37001e2285e74371a985671765ff9e5c870 Mon Sep 17 00:00:00 2001 From: Adam Saltsman Date: Mon, 2 May 2011 14:43:14 -0500 Subject: [PATCH] fixed node remove() functions to actually return nodes --- org/flixel/FlxPath.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org/flixel/FlxPath.as b/org/flixel/FlxPath.as index fb5e798b..bf16834c 100644 --- a/org/flixel/FlxPath.as +++ b/org/flixel/FlxPath.as @@ -147,7 +147,7 @@ package org.flixel { var index:int = nodes.indexOf(Node); if(index >= 0) - return nodes.splice(index,1); + return nodes.splice(index,1)[0]; else return null; } @@ -165,7 +165,7 @@ package org.flixel return null; if(Index >= nodes.length) Index = nodes.length-1; - return nodes.splice(Index,1); + return nodes.splice(Index,1)[0]; } /**