SAGA2: Fix SensorList erase in addSensor

This commit is contained in:
a/ 2021-07-22 00:13:14 +09:00
parent 7e9dcc3bda
commit 9a386e0b72

View File

@ -1929,8 +1929,8 @@ bool GameObject::addSensor(Sensor *newSensor) {
assert((*it)->getObject() == this);
if (newSensor->thisID() == (*it)->thisID()) {
sensorList->_list.remove(*it);
delete *it;
it = sensorList->_list.erase(it);
break;
}