diff options
| author | Rat <none@none> | 2010-11-04 22:08:15 +0100 |
|---|---|---|
| committer | Rat <none@none> | 2010-11-04 22:08:15 +0100 |
| commit | 57661c6d541bdb068fa71a3763dd7d8ad2536e75 (patch) | |
| tree | 5f639f70055e46b5974571931ce0d08a2e402e5c /src/server/game/Server | |
| parent | f658176df84a2db6e9877b5acdbe5b07c7f46abb (diff) | |
Core/SmartAI: swap menuid/actionid params in GOSSIP_SELECT event
- use proper sql ORDER to order script lines
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Server')
| -rwxr-xr-x | src/server/game/Server/Protocol/Handlers/MiscHandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/MiscHandler.cpp b/src/server/game/Server/Protocol/Handlers/MiscHandler.cpp index 09d3b60cc60..a2563486df3 100755 --- a/src/server/game/Server/Protocol/Handlers/MiscHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/MiscHandler.cpp @@ -139,13 +139,13 @@ void WorldSession::HandleGossipSelectOptionOpcode(WorldPacket & recv_data) { if (unit) { - unit->AI()->sGossipSelectCode(_player,gossipListId, menuId, code.c_str()); + unit->AI()->sGossipSelectCode(_player, menuId, gossipListId, code.c_str()); if (!sScriptMgr.OnGossipSelectCode(_player, unit, _player->PlayerTalkClass->GossipOptionSender(gossipListId), _player->PlayerTalkClass->GossipOptionAction(gossipListId), code.c_str())) _player->OnGossipSelect(unit, gossipListId, menuId); } else { - go->AI()->GossipSelectCode(_player, gossipListId, menuId, code.c_str()); + go->AI()->GossipSelectCode(_player, menuId, gossipListId, code.c_str()); sScriptMgr.OnGossipSelectCode(_player, go, _player->PlayerTalkClass->GossipOptionSender(gossipListId), _player->PlayerTalkClass->GossipOptionAction(gossipListId), code.c_str()); } } @@ -153,13 +153,13 @@ void WorldSession::HandleGossipSelectOptionOpcode(WorldPacket & recv_data) { if (unit) { - unit->AI()->sGossipSelect(_player, gossipListId, menuId); + unit->AI()->sGossipSelect(_player, menuId, gossipListId); if (!sScriptMgr.OnGossipSelect(_player, unit, _player->PlayerTalkClass->GossipOptionSender(gossipListId), _player->PlayerTalkClass->GossipOptionAction(gossipListId))) _player->OnGossipSelect(unit, gossipListId, menuId); } else { - go->AI()->GossipSelect(_player, gossipListId, menuId); + go->AI()->GossipSelect(_player, menuId, gossipListId); sScriptMgr.OnGossipSelect(_player, go, _player->PlayerTalkClass->GossipOptionSender(gossipListId), _player->PlayerTalkClass->GossipOptionAction(gossipListId)); } } |
