Skip to content

Commit

Permalink
Fix error when selecting expired BBS ad
Browse files Browse the repository at this point in the history
- Doesn't fully fix the UX related to expired items, but prevents an error
  • Loading branch information
sturnclaw committed Jan 31, 2023
1 parent 9733103 commit 8a3355d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/pigui/modules/station-view/02-bulletinBoard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ bulletinBoard = Table.New("BulletinBoardTable", false, {
local ref = item.__ref
local ad = SpaceStation.adverts[station][ref]

-- TODO: if the player is watching the BBS while an ad expires, the ad
-- will be grayed-out but not removed until the player clicks on
-- something.
if not ad then
refresh()
return
end

if Game.paused then
return
end
Expand Down

0 comments on commit 8a3355d

Please sign in to comment.