Commit d777179c9100f00dadc5f458bfcfabc605be1ecd

Authored by dg
1 parent 85f2a329

Force sorting of items in inventory when entering a store (because this can cause auto ids)


git-svn-id: http://svn.net-core.org/repos/t-engine4@1419 51575b47-30f0-44d4-a5cc-537603b46e54
@@ -108,3 +108,10 @@ function _M:descObject(who, what, o) @@ -108,3 +108,10 @@ function _M:descObject(who, what, o)
108 return desc 108 return desc
109 end 109 end
110 end 110 end
  111 +
  112 +--- Actor interacts with the store
  113 +-- @param who the actor who interracts
  114 +function _M:interact(who)
  115 + who:sortInven()
  116 + Store.interact(self, who)
  117 +end