Fix OpenRA.RunAfterDelay queuing a null action. Fixes #4512.
This commit is contained in:
@@ -10,6 +10,7 @@ OpenRA.New = function(className, args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
OpenRA.RunAfterDelay = function(delay, func)
|
OpenRA.RunAfterDelay = function(delay, func)
|
||||||
|
if func == nil then error("No function specified", 2) end
|
||||||
Internal.RunAfterDelay(delay, func)
|
Internal.RunAfterDelay(delay, func)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user