Added transactions for corpse creation, added sql to fix a bug in raid member saving in some situations, fixed a bug in encounters

This commit is contained in:
KimLS
2014-11-08 15:22:03 -08:00
parent fe7774ab75
commit d987ccf289
5 changed files with 29 additions and 2 deletions
+7
View File
@@ -402,6 +402,7 @@ Corpse::Corpse(Client* client, int32 in_rezexp)
}
}
database.TransactionBegin();
if(removed_list.size() != 0) {
std::stringstream ss("");
ss << "DELETE FROM inventory WHERE charid=" << client->CharacterID();
@@ -433,6 +434,12 @@ Corpse::Corpse(Client* client, int32 in_rezexp)
client->CalcBonuses(); // will only affect offline profile viewing of dead characters..unneeded overhead
client->Save();
Rezzed(false);
Save();
database.TransactionCommit();
return;
} //end "not leaving naked corpses"
Rezzed(false);