joshuas3521
01-02-2008, 03:35 AM
First tutorial :P
okay, well, for those of us who use version 2.4 stable, there is a huge and obvious glitch. If you log in, remove an item from your inventory, and log out, when you log in again, the item will still be in your inventory. This really started to piss me off, so I spent a few minutes in the source code and found how easy it really was to fix. First, open the file ItemHandler.cpp and look for
if(_player->GetCurrentSpell() && _player->GetCurrentSpell()->i_caster==pItem)
{
_player->GetCurrentSpell()->i_caster=NULL;
_player->GetCurrentSpell()->cancel();
}
delete pItem;
}
now add one line to change it to
if(_player->GetCurrentSpell() && _player->GetCurrentSpell()->i_caster==pItem)
{
_player->GetCurrentSpell()->i_caster=NULL;
_player->GetCurrentSpell()->cancel();
}
pItem->DeleteFromDB();
delete pItem;
}
}
Now rebuild your solution and it should work.
This worked for me and I hope it works for you ^^
Dammit, right as I figure this out, a new version becomes available O.o
okay, well, for those of us who use version 2.4 stable, there is a huge and obvious glitch. If you log in, remove an item from your inventory, and log out, when you log in again, the item will still be in your inventory. This really started to piss me off, so I spent a few minutes in the source code and found how easy it really was to fix. First, open the file ItemHandler.cpp and look for
if(_player->GetCurrentSpell() && _player->GetCurrentSpell()->i_caster==pItem)
{
_player->GetCurrentSpell()->i_caster=NULL;
_player->GetCurrentSpell()->cancel();
}
delete pItem;
}
now add one line to change it to
if(_player->GetCurrentSpell() && _player->GetCurrentSpell()->i_caster==pItem)
{
_player->GetCurrentSpell()->i_caster=NULL;
_player->GetCurrentSpell()->cancel();
}
pItem->DeleteFromDB();
delete pItem;
}
}
Now rebuild your solution and it should work.
This worked for me and I hope it works for you ^^
Dammit, right as I figure this out, a new version becomes available O.o