Commit 42c993b5 authored by Maiyannah Bishop's avatar Maiyannah Bishop

[Imp] Make sure temporary variables are deallocated on all return paths

parent 23d79281
......@@ -1343,6 +1343,12 @@ function Kauna.InfoPanel.DefaultTooltip()
-- If we're actively displaying a tooltip, don't overwrite it
if (Kauna.DisplayingTooltip==true) then
NumItems = nil
NumGuards = nil
NumHorde = nil
NumUndead = nil
NumMounts = nil
NumCharms = nil
return
end
......@@ -1352,11 +1358,10 @@ function Kauna.InfoPanel.DefaultTooltip()
-- --------------------------------------------------------------------------
-- Bail and print that we're pathfinding beyond this point, if we are pathfinding
if (Valkryja.Speedwalking==true) then
message = [[<span style='color:#2c606d;font-family:]]..Config.FontFamily..[[;font-weight:bold;font-size:10pt;'>]]..
"Pathfinding in progress</span>"
return
end
-- if (Valkryja.Speedwalking==true) then
-- message = [[<span style='color:#2c606d;font-family:]]..Config.FontFamily..[[;font-weight:bold;font-size:10pt;'>]]..
-- "Pathfinding in progress</span>"
-- end
-- --------------------------------------------------------------------------
-- Room objects blurb
......@@ -1461,7 +1466,7 @@ function Kauna.InfoPanel.DefaultTooltip()
end
message = message .. "</span>"
Valkryja.Debug("Message: " .. message, false)
Valkryja.Debug("Message: " .. message, false)
-- --------------------------------------------------------------------------
-- Output message
......@@ -1469,6 +1474,7 @@ function Kauna.InfoPanel.DefaultTooltip()
-- Free our working variable
message = nil
return true
end
-- -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment