Permalink
Browse files

Fixed restoring of persistent floor items

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 17, 2012
1 parent 2f11d4c commit 53b547b11fb3c34bd6e2ae0bae0090f2677ef529
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/game-server/accountconnection.cpp
@@ -177,7 +177,7 @@ void AccountConnection::processMessage(MessageIn &msg)
LOG_DEBUG("Recreate persistant items on map " << mapId);
int floorItemsNumber = msg.readInt16();
- for(int i = 0; i < floorItemsNumber; i += 4)
+ for (int i = 0; i < floorItemsNumber; ++i)
{
int itemId = msg.readInt32();
int amount = msg.readInt16();

0 comments on commit 53b547b

Please sign in to comment.