Merge pull request #3859 from laarmen/fix_spacestation_lobby

Lobby.lua: Add missing return
master
Simon Chopin 2016-11-07 13:57:56 +01:00 committed by GitHub
commit b57d94a6eb
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ local lobby = function (tab)
local updateTotalHyperdriveFuel = function ()
if Game.player:GetDockedWith() ~= station then
connections.updateTotalHyperdriveFuel:Disconnect()
return
end
totalHyperdriveFuel:SetText(Format.Money(station:GetEquipmentPrice(hyperdrive_fuel) * Game.player:CountEquip(hyperdrive_fuel)))
end