Skip to content

Commit

Permalink
now fixed #275 and #237 and reverted change from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Jul 16, 2016
1 parent a7ad1cd commit 5191094
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1142
1145
8 changes: 6 additions & 2 deletions gamemodes/sss/core/player/save-load.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,10 @@ LoadPlayerChar(playerid)

if(IsValidItemType(ItemType:data[0]) && length > 0)
{
itemid = CreateItem(ItemType:data[0]);
itemid = AllocNextItemID(ItemType:data[0]);
SetItemNoResetArrayData(itemid, true);
SetItemArrayData(itemid, data[2], data[1]);
CreateItem_ExplicitID(itemid);
GiveWorldItemToPlayer(playerid, itemid);

d:2:HANDLER("[LOAD:%p] HELD %d (%d adc) (itemid: %d)", playerid, data[0], data[1], itemid);
Expand All @@ -444,8 +446,10 @@ LoadPlayerChar(playerid)

if(IsValidItemType(ItemType:data[0]) && length > 0)
{
itemid = CreateItem(ItemType:data[0]);
itemid = AllocNextItemID(ItemType:data[0]);
SetItemNoResetArrayData(itemid, true);
SetItemArrayData(itemid, data[2], data[1]);
CreateItem_ExplicitID(itemid);
SetPlayerHolsterItem(playerid, itemid);

d:2:HANDLER("[LOAD:%p] HOLS %d (%d adc) (itemid: %d)", playerid, data[0], data[1], itemid);
Expand Down

0 comments on commit 5191094

Please sign in to comment.