Don't eat RAM if the themer accidentally uses LoadActor(""), display an error instead.

This commit is contained in:
AJ Kelly
2010-06-03 00:15:03 -05:00
parent 3638d13432
commit 0046422506
+4
View File
@@ -93,6 +93,10 @@ end
function LoadActorFunc( path, level )
level = level or 1
if path == "" then
error( "Passing in a blank filename is a great way to eat up RAM. Good thing we warn you about this." );
end;
local ResolvedPath = ResolveRelativePath( path, level+1 );
if not ResolvedPath then
error( path .. ": not found", level+1 );