mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 03:06:38 +00:00
AA fixes for PEQ's reported crash
This commit is contained in:
@@ -1300,6 +1300,10 @@ void Client::SendAA(uint32 id, int seq) {
|
||||
return;
|
||||
|
||||
int size=sizeof(SendAA_Struct)+sizeof(AA_Ability)*saa2->total_abilities;
|
||||
|
||||
if(size == 0)
|
||||
return;
|
||||
|
||||
uchar* buffer = new uchar[size];
|
||||
SendAA_Struct* saa=(SendAA_Struct*)buffer;
|
||||
memcpy(saa,saa2,size);
|
||||
|
||||
Reference in New Issue
Block a user