Skip to content

Commit

Permalink
Fixed restoring of persistent floor items
Browse files Browse the repository at this point in the history
Only 1/4th of the floor items were being restored after a reboot of the game
server.

Reviewed-by: jurkan
  • Loading branch information
bjorn committed Mar 21, 2012
1 parent 2f11d4c commit 53b547b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game-server/accountconnection.cpp
Expand Up @@ -177,7 +177,7 @@ void AccountConnection::processMessage(MessageIn &msg)
LOG_DEBUG("Recreate persistant items on map " << mapId); LOG_DEBUG("Recreate persistant items on map " << mapId);
int floorItemsNumber = msg.readInt16(); int floorItemsNumber = msg.readInt16();


for(int i = 0; i < floorItemsNumber; i += 4) for (int i = 0; i < floorItemsNumber; ++i)
{ {
int itemId = msg.readInt32(); int itemId = msg.readInt32();
int amount = msg.readInt16(); int amount = msg.readInt16();
Expand Down

0 comments on commit 53b547b

Please sign in to comment.