mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-11 05:43:33 +00:00
Fixed bug, where wrong object type was being pushed
This commit is contained in:
@@ -116,7 +116,7 @@ void ILibDuktape_WritableStream_Ready(ILibDuktape_WritableStream *stream)
|
||||
}
|
||||
else if (stream->OnWriteFlush != NULL)
|
||||
{
|
||||
duk_push_this(stream->ctx); // [stream]
|
||||
duk_push_heapptr(stream->ctx, stream->obj); // [stream]
|
||||
duk_push_heapptr(stream->ctx, stream->OnWriteFlush); // [stream][func]
|
||||
duk_swap_top(stream->ctx, -2); // [func][stream]
|
||||
stream->OnWriteFlush = NULL;
|
||||
|
||||
Reference in New Issue
Block a user