diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 7245e791f..755db9827 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -236,7 +236,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) DEBUG_PRINTF("ID_GAME_SPELLBOOK\n"); myPacket->Read(player); - Script::Call(player->getId()); + Script::Call(player->getId(), player->spellbook.action); break; } diff --git a/apps/openmw-mp/Script/ScriptFunctions.hpp b/apps/openmw-mp/Script/ScriptFunctions.hpp index 95d7e185f..c348df6f3 100644 --- a/apps/openmw-mp/Script/ScriptFunctions.hpp +++ b/apps/openmw-mp/Script/ScriptFunctions.hpp @@ -106,7 +106,7 @@ public: {"OnPlayerChangeLevel", Function()}, {"OnPlayerChangeEquipment", Function()}, {"OnPlayerChangeInventory", Function()}, - {"OnPlayerChangeSpellbook", Function()}, + {"OnPlayerChangeSpellbook", Function()}, {"OnPlayerSendMessage", Function()}, {"OnPlayerEndCharGen", Function()}, {"OnGUIAction", Function()}