This commit is contained in:
aozhiwei 2024-02-04 15:08:25 +08:00
parent 11b60d40f8
commit 6f57b1f385

View File

@ -1615,7 +1615,7 @@ void Human::OnDie()
if (observers_.size() > 1) {
std::vector<Human*> exclude_self_observers;
for (auto& observer : observers_) {
if (observer != this) {
if (observer != this && !observer->IsOb()) {
exclude_self_observers.push_back(observer);
}
}