lock mutex in clearEntitiesInernal()

This commit is contained in:
Andrew Meadows 2016-02-28 15:13:49 -08:00
parent b4edfe2390
commit a933935e2d

View file

@ -127,6 +127,7 @@ void SimpleEntitySimulation::changeEntityInternal(EntityItemPointer entity) {
}
void SimpleEntitySimulation::clearEntitiesInternal() {
QMutexLocker lock(&_mutex);
_entitiesWithSimulationOwner.clear();
_entitiesThatNeedSimulationOwner.clear();
}