diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 20fb5ee95..5b2ed42d1 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -425,7 +425,6 @@ void Networking::processWorldPacket(RakNet::Packet *packet) } worldEvent = new WorldEvent(player->guid); - mwmp::WorldObject worldObject; switch (packet->data[0]) { @@ -438,14 +437,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet) myPacket->Read(worldEvent); myPacket->Send(worldEvent, true); - for (unsigned int i = 0; i < worldEvent->objectChanges.count; i++) - { - worldObject = worldEvent->objectChanges.objects[i]; - - Script::Call( - player->getId(), - worldEvent->cell.getDescription().c_str()); - } + Script::Call( + player->getId(), + worldEvent->cell.getDescription().c_str()); break; } @@ -458,16 +452,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet) myPacket->Read(worldEvent); myPacket->Send(worldEvent, true); - ESM::CellRef cellRef; - - for (unsigned int i = 0; i < worldEvent->objectChanges.count; i++) - { - worldObject = worldEvent->objectChanges.objects[i]; - - Script::Call( - player->getId(), - worldEvent->cell.getDescription().c_str()); - } + Script::Call( + player->getId(), + worldEvent->cell.getDescription().c_str()); break; }