diff --git a/flixel/system/macros/FlxAssetPaths.hx b/flixel/system/macros/FlxAssetPaths.hx index df63490493..bcd7986c3b 100644 --- a/flixel/system/macros/FlxAssetPaths.hx +++ b/flixel/system/macros/FlxAssetPaths.hx @@ -47,7 +47,7 @@ class FlxAssetPaths if (filterExtensions != null) { - var extension:String = name.split(".")[1]; // get the string after the dot + var extension:String = name.split(".").last(); // get the last string with a dot before it if (filterExtensions.indexOf(extension) == -1) continue; } @@ -83,4 +83,4 @@ private class FileReference this.documentation = "\"" + value + "\" (auto generated)."; } } -#end \ No newline at end of file +#end