1
This commit is contained in:
parent
6ef7ff4141
commit
ccf89f53d0
@ -1493,7 +1493,7 @@ CreatureWeakPtr Creature::AllocWeakPtr()
|
|||||||
|
|
||||||
CreatureWeakPtr& Creature::GetWeakPtrRef()
|
CreatureWeakPtr& Creature::GetWeakPtrRef()
|
||||||
{
|
{
|
||||||
if (weak_ptr_.Get()) {
|
if (!weak_ptr_.Get()) {
|
||||||
weak_ptr_.Attach(this);
|
weak_ptr_.Attach(this);
|
||||||
}
|
}
|
||||||
return weak_ptr_;
|
return weak_ptr_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user