diff --git a/mods/common/lua/openra.lua b/mods/common/lua/openra.lua index 9d20c03ff2..1b8b9d9bab 100644 --- a/mods/common/lua/openra.lua +++ b/mods/common/lua/openra.lua @@ -43,7 +43,11 @@ OpenRA.SetWinState = function(player, winState) end OpenRA.GetRandomInteger = function(low, high) - return Internal.GetRandomInteger(low, high) + if high <= low then + return low + else + return Internal.GetRandomInteger(low, high) + end end OpenRA.TakeOre = function(player, amount)