1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

[Server] Fix integer types for new script callbacks

This commit is contained in:
David Cernat 2017-01-25 07:51:44 +02:00
parent f9feaf05f0
commit 25e535e8ad

View file

@ -421,7 +421,7 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
Script::Call<Script::CallbackIdentity("OnObjectPlace")>(
player->getId(),
event->cellRef.mRefID.c_str(),
event->cellRef.mRefNum.mIndex,
(int) event->cellRef.mRefNum.mIndex,
event->cell.getDescription().c_str());
break;
@ -444,7 +444,7 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
Script::Call<Script::CallbackIdentity("OnObjectDelete")>(
player->getId(),
event->cellRef.mRefID.c_str(),
event->cellRef.mRefNum.mIndex,
(int) event->cellRef.mRefNum.mIndex,
event->cell.getDescription().c_str());
break;