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

0.3.7 Crash

MxSoft

Leave Tibia, Live Life.
Joined
Dec 22, 2009
Messages
1,804
Solutions
1
Reaction score
43
Location
Mexico
Does someone have experience this :
Code:
(gdb) bt full
#0  0x081dff43 in QTreeNode::getLeaf (this=0x2a683ff0, x=16384, y=16384)
    at map.cpp:1022
        index = 0
#1  0x081dffb2 in QTreeNode::getLeaf (this=0x2a5ed570, x=40960, y=8192)
    at map.cpp:1027
        index = 1
#2  0x081dffb2 in QTreeNode::getLeaf (this=0x2ae090b8, x=20480, y=36864)
    at map.cpp:1027
        index = 2
#3  0x081dffb2 in QTreeNode::getLeaf (this=0x2ae09098, x=10240, y=18432)
    at map.cpp:1027
        index = 0
#4  0x081dffb2 in QTreeNode::getLeaf (this=0x2ae08f08, x=5120, y=9216)
    at map.cpp:1027
        index = 0
#5  0x081dffb2 in QTreeNode::getLeaf (this=0x30c5b018, x=2560, y=37376)
    at map.cpp:1027
        index = 2
#6  0x081dffb2 in QTreeNode::getLeaf (this=0x3bf937a8, x=1280, y=51456)
    at map.cpp:1027
        index = 2
#7  0x081dffb2 in QTreeNode::getLeaf (this=0x3bf93788, x=640, y=58496)
    at map.cpp:1027
My server crashed today and this is my error log
 
What is this function for?
Code:
QTreeLeafNode* QTreeNode::getLeaf(uint16_t x, uint16_t y)
{
    if(isLeaf())
        return static_cast<QTreeLeafNode*>(this);

    uint32_t index = ((x & 0x8000) >> 15) | ((y & 0x8000) >> 14);
    if(m_child[index])
        return m_child[index]->getLeaf(x << 1, y << 1);

    return NULL;
}
 
Back
Top