Commit d777179c9100f00dadc5f458bfcfabc605be1ecd
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
Showing
1 changed file
with
7 additions
and
0 deletions
... | ... | @@ -108,3 +108,10 @@ function _M:descObject(who, what, o) |
108 | 108 | return desc |
109 | 109 | end |
110 | 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 | ... | ... |
-
Please register or login to post a comment