• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Bug Report] Item destructor

zbizu

Legendary OT User
Joined
Nov 22, 2010
Messages
3,161
Solutions
23
Reaction score
2,313
Location
Poland
GitHub
Zbizu
the Player destructor starts at line 60, like this part of log suggests:
Code:
0x000000000059419e in Player::~Player (this=0x7fffcddc69e0) at /home/otserv1064/tfs/src/player.cpp:60

This part suggests that the crash happened in second loop actually:
Code:
0x00000000005943a2 in Player::~Player (this=0x7fffcddc69e0) at /home/otserv1064/tfs/src/player.cpp:71

Lines 69-71 of player.cpp contain this:
Code:
    for (const auto& it : depotLockerMap) {
        it.second->removeInbox(inbox);
    }

were you playing with new depot boxes code by any chance?
 

nemk

New Member
Joined
Feb 28, 2010
Messages
10
Reaction score
1
the Player destructor starts at line 60, like this part of log suggests:
Code:
0x000000000059419e in Player::~Player (this=0x7fffcddc69e0) at /home/otserv1064/tfs/src/player.cpp:60

This part suggests that the crash happened in second loop actually:
Code:
0x00000000005943a2 in Player::~Player (this=0x7fffcddc69e0) at /home/otserv1064/tfs/src/player.cpp:71

Lines 69-71 of player.cpp contain this:
Code:
    for (const auto& it : depotLockerMap) {
        it.second->removeInbox(inbox);
    }

were you playing with new depot boxes code by any chance?
try adding return at end of line 69 it should help
 
Top