Hey guys,
I need someone with experience regarding the scources.
I have added a new struct variable to player.cpp.
In the struct contains a AutoList which stores players.
The problem is if the player logsout the server crashes.
I detected that it happens when "freeThing(creature);" is called in:
bool Game::removeCreature(Creature* creature, bool isLogout /*= true*/)
However the server only crashs if the struct was edited, even if I clear the list before that function is called or reset the struct to default it will still crash.
I need someone with experience regarding the scources.
I have added a new struct variable to player.cpp.
In the struct contains a AutoList which stores players.
The problem is if the player logsout the server crashes.
I detected that it happens when "freeThing(creature);" is called in:
bool Game::removeCreature(Creature* creature, bool isLogout /*= true*/)
However the server only crashs if the struct was edited, even if I clear the list before that function is called or reset the struct to default it will still crash.
Last edited: