1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Show better errors when loading scenery groups (#16854)

This commit is contained in:
Duncan
2022-03-23 00:01:52 +00:00
committed by GitHub
parent a2f7ffcb71
commit c5b5b95bcd
3 changed files with 15 additions and 7 deletions

View File

@@ -33,7 +33,7 @@
#include <iterator>
#include <vector>
bool _maxObjectsWasHit;
bool _gSceneryGroupPartialSelectError;
std::vector<uint8_t> _objectSelectionFlags;
int32_t _numSelectedObjectsForType[EnumValue(ObjectType::Count)];
static int32_t _numAvailableObjectsForType[EnumValue(ObjectType::Count)];
@@ -581,7 +581,7 @@ bool window_editor_object_selection_select_object(uint8_t isMasterObject, int32_
{
if (!window_editor_object_selection_select_object(++isMasterObject, flags, sgEntry))
{
_maxObjectsWasHit = true;
_gSceneryGroupPartialSelectError = true;
}
}
}