Stellow
C++/C#/PHP/LUA
Using TFS 1.2 (Nostalrius), a segmentation fault can occur on the market line:
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.
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: