Skip to content

Commit

Permalink
Merge branch 'master' into bank
Browse files Browse the repository at this point in the history
  • Loading branch information
mabako committed May 10, 2010
2 parents 0f439b3 + aa4edd7 commit 0677ebf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/items/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ addCommandHandler( "giveitem",
local other, pname = exports.players:getFromName( player, other )
if other then
-- check if it's a valid item id
if id >= 0 and id < #item_list then
if id >= 0 and id <= #item_list then
-- we need to split our name and value apart
local arguments = { ... }
local value = { }
Expand Down
8 changes: 8 additions & 0 deletions resources/shops/shop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,14 @@ addEventHandler( "onElementClicked", resourceRoot,
end
)

addEventHandler( "onCharacterLogout", root,
function( )
if p[ source ] then
p[ source ].shopID = nil
end
end
)

addEventHandler( "onPlayerQuit", root,
function( )
p[ source ] = nil
Expand Down

0 comments on commit 0677ebf

Please sign in to comment.