mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 05:53:02 +01:00
Expose obj image offset and num images to plugins (#17567)
Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
@@ -74,13 +74,13 @@ void MusicObject::Load()
|
||||
}
|
||||
|
||||
_hasPreview = !!GetImageTable().GetCount();
|
||||
_previewImageId = GfxObjectAllocateImages(GetImageTable().GetImages(), GetImageTable().GetCount());
|
||||
_previewImageId = LoadImages();
|
||||
}
|
||||
|
||||
void MusicObject::Unload()
|
||||
{
|
||||
LanguageFreeObjectString(NameStringId);
|
||||
GfxObjectFreeImages(_previewImageId, GetImageTable().GetCount());
|
||||
UnloadImages();
|
||||
|
||||
_hasPreview = false;
|
||||
_previewImageId = 0;
|
||||
|
||||
Reference in New Issue
Block a user