Permalink
Browse files

Merge pull request #47 from DeadnightWarrior/DnW

Fix crash caused by comparing strings with numbers
  • Loading branch information...
Kaylewt
Kaylewt committed Jan 6, 2013
2 parents 6167d50 + 4bda657 commit 9aef75d118246c13c9c5d22ef3b9a8c891c360e0
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 9aef75d

Please sign in to comment.