fix garages

This commit is contained in:
Nikolay Korolev 2020-04-13 22:43:41 +03:00 committed by GitHub
parent 304b574eba
commit 906133d3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2108,7 +2108,7 @@ void CGarages::CloseHideOutGaragesBeforeSave()
aGarages[i].m_eGarageType != GARAGE_HIDEOUT_THREE) aGarages[i].m_eGarageType != GARAGE_HIDEOUT_THREE)
continue; continue;
if (aGarages[i].m_eGarageState != GS_FULLYCLOSED && if (aGarages[i].m_eGarageState != GS_FULLYCLOSED &&
aGarages[i].m_eGarageType != GARAGE_HIDEOUT_ONE || !aGarages[i].IsAnyCarBlockingDoor()) { (aGarages[i].m_eGarageType != GARAGE_HIDEOUT_ONE || !aGarages[i].IsAnyCarBlockingDoor())) {
aGarages[i].m_eGarageState = GS_FULLYCLOSED; aGarages[i].m_eGarageState = GS_FULLYCLOSED;
switch (aGarages[i].m_eGarageType) { switch (aGarages[i].m_eGarageType) {
case GARAGE_HIDEOUT_ONE: case GARAGE_HIDEOUT_ONE: