Commit 7f3fc6c7b0be9ba2a3b5e2084452cea01c6f0c6e

Authored by dg
1 parent b4a5029a

oups!


git-svn-id: http://svn.net-core.org/repos/t-engine4@4439 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -343,6 +343,7 @@ function _M:updateKeys(kind)
343 343 end
344 344
345 345 function _M:cancel()
  346 +--[[
346 347 self.actor.unused_stats = self.actor_dup.unused_stats
347 348 self.actor.unused_talents = self.actor_dup.unused_talents
348 349 self.actor.unused_generics = self.actor_dup.unused_generics
... ... @@ -366,6 +367,11 @@ function _M:cancel()
366 367 end
367 368 end
368 369 self.actor.last_learnt_talents = self.actor_dup.last_learnt_talents
  370 +]]
  371 + self.actor:replaceWith(self.actor_dup)
  372 + self.actor.changed = true
  373 + self.actor:removeAllMOs()
  374 + if game.level and self.actor.x then game.level.map:updateMap(self.actor.x, self.actor.y) end
369 375 end
370 376
371 377 function _M:tabTabs()
... ...