Fix mistake

This commit is contained in:
Antonis Geralis 2023-12-22 15:30:39 +02:00 committed by GitHub
parent df58ee1fcb
commit 0778fdadea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ int main(void)
// Automation events // Automation events
AutomationEventList aelist = LoadAutomationEventList(0); // Initialize list of automation events to record new events AutomationEventList aelist = LoadAutomationEventList(0); // Initialize list of automation events to record new events
SetAutomationEventList(aelist); SetAutomationEventList(&aelist);
bool eventRecording = false; bool eventRecording = false;
bool eventPlaying = false; bool eventPlaying = false;
@ -98,7 +98,7 @@ int main(void)
// Supports loading .rgs style files (text or binary) and .png style palette images // Supports loading .rgs style files (text or binary) and .png style palette images
if (IsFileExtension(droppedFiles.paths[0], ".txt;.rae")) if (IsFileExtension(droppedFiles.paths[0], ".txt;.rae"))
{ {
UnloadAutomationEventList(&aelist); UnloadAutomationEventList(aelist);
aelist = LoadAutomationEventList(droppedFiles.paths[0]); aelist = LoadAutomationEventList(droppedFiles.paths[0]);
eventRecording = false; eventRecording = false;