• 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!

Segmentation Fault on TFS 1.2

Stellow

C++/C#/PHP/LUA
Joined
Oct 23, 2008
Messages
1,106
Reaction score
214
Location
Germany
GitHub
eubrunomiguel
Using TFS 1.2 (Nostalrius), a segmentation fault can occur on the market line:


C++:
Player::~Player()
{
    for (Item* item : inventory) {
        if (item) {
            item->setParent(nullptr); <-- HERE!
            item->decrementReferenceCounter();
        }
    }

What I don't understand, is how is that possible. We check for item? I guess we are not multithreading on the inventory? What is happening?
Anybody has any hint?

Edit, this topic may be a duplicate, please delete it.
 
Last edited:
Back
Top