mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[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:
parent
f244e68c59
commit
593f1e81b9
4 changed files with 9 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue