[10103] More cleanups in InstanceSave

* Use single function for erase element from save list.
* Make lock bool checks class local (it need be replaced by normal lock object in future)
* Remove redundent now friend class declarations.
This commit is contained in:
VladimirMangos 2010-06-24 07:11:51 +04:00
parent f244e68c59
commit 593f1e81b9
4 changed files with 9 additions and 8 deletions

View file

@ -16414,7 +16414,8 @@ InstancePlayerBind* Player::BindToInstance(InstanceSave *save, bool permanent, b
if(bind.save != save)
{
if(bind.save) bind.save->RemovePlayer(this);
if(bind.save)
bind.save->RemovePlayer(this);
save->AddPlayer(this);
}