Skip to content

Commit

Permalink
bugfix: polaroid is not correct removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Milchreis committed Aug 13, 2023
1 parent 4f21e41 commit e406155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/MascotDetails.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func onOpen(mascot:Mascot):
employee = mascot
polaroid = Polaroid.instance()
polaroid.mascot = mascot
polaroid.showHover = false
polaroid.showHover = false
polaroid.clickable = false
polaroid.rect_position = Vector2(4, 3)
$LeftSideBackground.add_child(polaroid)
Expand All @@ -29,7 +29,7 @@ func onClose():
model.disconnect("day_passed", self, "updateUI")

if polaroid:
remove_child(polaroid)
$LeftSideBackground.remove_child(polaroid)

func onAccept(eventScene:EventScene):
eventScene.connect("animationFinished", self, "reloadEvents")
Expand Down

0 comments on commit e406155

Please sign in to comment.