Permalink
Browse files

Fix crash caused by comparing strings with numbers

  • Loading branch information...
DeadnightWarrior committed Jan 5, 2013
1 parent bba83f9 commit 4bda657085be468761ed4ad0b817897adc6a72bb
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 4bda657

Please sign in to comment.