Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeworld_logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function Homeworld:tick( tick )
for player_index = 1, #game.players do
local player = game.players[player_index]
local held_item = player.cursor_stack
local holding_pda = (held_item.valid_for_read and held_item.name == pda_name)
local holding_pda = (held_item and held_item.valid_for_read and held_item.name == pda_name)
if self.state.using_pda[player_index] and not holding_pda then
self.state.using_pda[player_index] = nil
self:hide_gui(player_index)
Expand Down