(Pepper) Fix building variant switch bug (#451)

* (Pepper) Fix building variant switch bug

* Add comment
This commit is contained in:
Christian Semmler 2025-06-29 09:15:42 -07:00 committed by GitHub
parent 99be9c8767
commit 77bbbfe2ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -394,6 +394,9 @@ MxResult LegoBuildingManager::Read(LegoStorage* p_storage)
m_nextVariant = 0;
}
// Bugfix: allow Pepper to change variant building after save game load
g_buildingInfo[HAUS1_INDEX].m_variant = g_buildingInfoVariants[m_nextVariant];
result = SUCCESS;
done: