summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index d985701..b839937 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2096,7 +2096,7 @@ int lcoreGetAutomationEventListCount( lua_State* L ) {
/*
> event = RL.GetAutomationEvent( AutomationEventList list, int index )
-Get automation event from automation event list
+Get automation event from automation event list. Return as lightuserdata
- Failure return nil
- Success return AutomationEvent
@@ -2106,7 +2106,7 @@ int lcoreGetAutomationEvent( lua_State* L ) {
int index = luaL_checkinteger( L, 2 );
if ( 0 <= index && index < list->count ) {
- uluaPushAutomationEvent( L, list->events[ index ] );
+ lua_pushlightuserdata( L, &list->events[ index ] );
}
else {
TraceLog( LOG_WARNING, "GetAutomationEvent index %d out of bounds", index );