mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Resurrection - Fix for RoF + fixed a couple of memory leaks.
This commit is contained in:
@@ -1578,9 +1578,9 @@ uint32 ZoneDatabase::UpdatePlayerCorpse(uint32 dbid, uint32 charid, const char*
|
||||
}
|
||||
if(rezzed){
|
||||
if (!RunQuery(query, MakeAnyLenString(&query, "update player_corpses set rezzed = 1 WHERE id=%d",dbid), errbuf)) {
|
||||
safe_delete_array(query);
|
||||
cerr << "Error in UpdatePlayerCorpse/Rezzed query: " << errbuf << endl;
|
||||
}
|
||||
safe_delete_array(query);
|
||||
}
|
||||
return dbid;
|
||||
}
|
||||
|
||||
@@ -4768,10 +4768,8 @@ void Client::Handle_OP_InstillDoubt(const EQApplicationPacket *app)
|
||||
|
||||
void Client::Handle_OP_RezzAnswer(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(Resurrect_Struct)) {
|
||||
LogFile->write(EQEMuLog::Error, "Wrong size: OP_RezzAnswer, size=%i, expected %i", app->size, sizeof(Resurrect_Struct));
|
||||
return;
|
||||
}
|
||||
VERIFY_PACKET_LENGTH(OP_RezzAnswer, app, Resurrect_Struct);
|
||||
|
||||
const Resurrect_Struct* ra = (const Resurrect_Struct*) app->pBuffer;
|
||||
|
||||
_log(SPELLS__REZ, "Received OP_RezzAnswer from client. Pendingrezzexp is %i, action is %s",
|
||||
@@ -4788,6 +4786,7 @@ void Client::Handle_OP_RezzAnswer(const EQApplicationPacket *app)
|
||||
// the rezzed corpse is in to mark the corpse as rezzed.
|
||||
outapp->SetOpcode(OP_RezzComplete);
|
||||
worldserver.RezzPlayer(outapp, 0, 0, OP_RezzComplete);
|
||||
safe_delete(outapp);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user