Fix OpenRA.RunAfterDelay queuing a null action. Fixes #4512.

This commit is contained in:
Oliver Brakmann
2014-01-31 23:58:40 +01:00
parent 886efd0b97
commit 6be0a26353

View File

@@ -10,6 +10,7 @@ OpenRA.New = function(className, args)
end
OpenRA.RunAfterDelay = function(delay, func)
if func == nil then error("No function specified", 2) end
Internal.RunAfterDelay(delay, func)
end