mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-30 23:01:04 +00:00
Sync player data to DB when trading and sending emails
This commit is contained in:
@@ -276,7 +276,7 @@ static void emailSend(CNSocket* sock, CNPacketData* data) {
|
||||
0 // DeleteTime (unimplemented)
|
||||
};
|
||||
|
||||
if (!Database::sendEmail(&email, attachments)) {
|
||||
if (!Database::sendEmail(&email, attachments, plr)) {
|
||||
plr->money += cost; // give money back
|
||||
// give items back
|
||||
while (!attachments.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user