mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Compare commits
4 Commits
5a0c27637e
...
525eceb5a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
525eceb5a2 | ||
|
|
bd13d6be80 | ||
|
|
d0ac9452f4 | ||
|
|
8a30d10617 |
@ -227,6 +227,12 @@ void PlayerbotHolder::HandleBotPackets(WorldSession* session)
|
||||
{
|
||||
OpcodeClient opcode = static_cast<OpcodeClient>(packet->GetOpcode());
|
||||
ClientOpcodeHandler const* opHandle = opcodeTable[opcode];
|
||||
if (!opHandle)
|
||||
{
|
||||
LOG_ERROR("playerbots", "Unhandled opcode {} queued for bot session {}. Packet dropped.", static_cast<uint32>(opcode), session->GetAccountId());
|
||||
delete packet;
|
||||
continue;
|
||||
}
|
||||
opHandle->Call(session, *packet);
|
||||
delete packet;
|
||||
}
|
||||
|
||||
@ -178,6 +178,9 @@ uint32 TravelNodePath::getPrice()
|
||||
|
||||
TaxiPathEntry const* taxiPath = sTaxiPathStore.LookupEntry(pathObject);
|
||||
|
||||
if (!taxiPath)
|
||||
return 0;
|
||||
|
||||
return taxiPath->price;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user