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

TFS 0.X Crash

pepsiman

---
Joined
Nov 17, 2017
Messages
128
Solutions
5
Reaction score
86
Hi, i had a crash, could someone help me please?
This is the gdb report
I'm using OTX2
hastebin
 
Last edited:
Solution
on spells.cpp find
Code:
ReturnValue ConjureSpell::internalConjureItem

there find this:
Code:
        if(ret != RET_NOERROR)
            delete newItem;

        g_game.startDecay(newItem);

replace with this:
Code:
        if(ret != RET_NOERROR)
        {
            delete newItem;
        }
        else
        {
            g_game.startDecay(newItem);
        }

@MartyX, please update this on your repo
> player tile is full
> player cast conjureItem spell and if there is not room on his/her backpack send to tile
> since tile is full, it crash

i will upload the fix soon
 
on spells.cpp find
Code:
ReturnValue ConjureSpell::internalConjureItem

there find this:
Code:
        if(ret != RET_NOERROR)
            delete newItem;

        g_game.startDecay(newItem);

replace with this:
Code:
        if(ret != RET_NOERROR)
        {
            delete newItem;
        }
        else
        {
            g_game.startDecay(newItem);
        }

@MartyX, please update this on your repo
 
Solution
Back
Top