mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove 13k dynamic initializer by changing SpriteGroupNames type
This commit is contained in:
parent
efea009ed5
commit
62c0bc2cf5
|
@ -153,7 +153,7 @@ enum class SpriteGroupType : uint8_t
|
|||
Count
|
||||
};
|
||||
|
||||
static const std::string SpriteGroupNames[] = {
|
||||
static constexpr const char* SpriteGroupNames[] = {
|
||||
"slopeFlat", "slopes12", "slopes25", "slopes42",
|
||||
"slopes60", "slopes75", "slopes90", "slopesLoop",
|
||||
"slopeInverted", "slopes8", "slopes16", "slopes50",
|
||||
|
|
|
@ -342,7 +342,7 @@ namespace OpenRCT2::Scripting
|
|||
{
|
||||
auto group = entry->SpriteGroups[g];
|
||||
if (group.Enabled())
|
||||
groups.Set(SpriteGroupNames[g].c_str(), ToDuk<VehicleSpriteGroup>(ctx, group));
|
||||
groups.Set(SpriteGroupNames[g], ToDuk<VehicleSpriteGroup>(ctx, group));
|
||||
}
|
||||
}
|
||||
return groups.Take();
|
||||
|
|
Loading…
Reference in New Issue