This commit is contained in:
aozhiwei 2021-05-13 19:50:05 +08:00
parent 6ef7ff4141
commit ccf89f53d0

View File

@ -1493,7 +1493,7 @@ CreatureWeakPtr Creature::AllocWeakPtr()
CreatureWeakPtr& Creature::GetWeakPtrRef()
{
if (weak_ptr_.Get()) {
if (!weak_ptr_.Get()) {
weak_ptr_.Attach(this);
}
return weak_ptr_;