Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #47 from DeadnightWarrior/DnW

Fix crash caused by comparing strings with numbers
  • Loading branch information...
commit 9aef75d118246c13c9c5d22ef3b9a8c891c360e0 2 parents 6167d50 + 4bda657
Kaylewt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cont/base/springcontent/gamedata/weapondefs_post.lua
View
4 cont/base/springcontent/gamedata/weapondefs_post.lua
@@ -124,8 +124,8 @@ local function BackwardCompability(wdName, wd)
wd.weapontype = "LightningCannon"
elseif (wd.weapontype == "AircraftBomb") then
if (wd.manualbombsettings) then
- wd.reloadtime = wd.reloadtime or 1.0
- wd.burstrate = wd.burstrate or 0.1
+ wd.reloadtime = tonumber(wd.reloadtime or 1.0)
+ wd.burstrate = tonumber(wd.burstrate or 0.1)
if (wd.reloadtime < 0.5) then
wd.burstrate = math.min(0.2, wd.reloadtime) -- salvodelay
Please sign in to comment.
Something went wrong with that request. Please try again.