From c57a30e27a44197858bdc572ea558c3d79ae4093 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Thu, 12 Apr 2018 11:12:43 +0200
Subject: [PATCH] dispose

---
 game/modules/tome/class/Party.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/game/modules/tome/class/Party.lua b/game/modules/tome/class/Party.lua
index 32ab63ff1d..eb44560ad2 100644
--- a/game/modules/tome/class/Party.lua
+++ b/game/modules/tome/class/Party.lua
@@ -150,6 +150,7 @@ function _M:switchToOldParty()
 	if self.old_party then
 		game.party = self.old_party
 		game.party:setPlayer(game:getPlayer(true), true)
+		if self.on_dispose then self:on_dispose(game.party) end
 		return true
 	else
 		return false
-- 
GitLab