Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix small logic mistake in CGarage::RemoveCarsBlockingDoorNotInside
  • Loading branch information
jack9267 committed Aug 18, 2020
1 parent 2dcf31b commit db1e5a6ec43246089e5e840b40b189c2c5e37183
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/control/Garages.cpp
@@ -1384,7 +1384,7 @@ void CGarage::RemoveCarsBlockingDoorNotInside()
if (pVehicle->GetPosition().x < m_fX1 || pVehicle->GetPosition().x > m_fX2 ||
pVehicle->GetPosition().y < m_fY1 || pVehicle->GetPosition().y > m_fY2 ||
pVehicle->GetPosition().z < m_fZ1 || pVehicle->GetPosition().z > m_fZ2) {
if (pVehicle->bIsLocked && pVehicle->CanBeDeleted()) {
if (!pVehicle->bIsLocked && pVehicle->CanBeDeleted()) {
CWorld::Remove(pVehicle);
delete pVehicle;
return; // WHY?

0 comments on commit db1e5a6

Please sign in to comment.