Fix incorrect type check of wpRad in Racer
authorWuzzy <almikes@aol.com>
Wed, 23 Nov 2016 02:39:08 +0100
changeset 11985 b2783dd12f30
parent 11984 ad38e2c7ab12
child 11986 f97b1c7fa053
Fix incorrect type check of wpRad in Racer
share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Wed Nov 23 02:00:24 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Wed Nov 23 02:39:08 2016 +0100
@@ -191,7 +191,7 @@
     end
     if params["waypointradius"] ~= nil then
         wpRad = math.max(40, math.floor(tonumber(params["waypointradius"])))
-        if type(roundLimit) ~= "number" then
+        if type(wpRad) ~= "number" then
              wpRad = 450
         end
     end