1
0
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:
Bryan Roe
2022-03-07 09:51:57 -08:00
parent bc482d2eba
commit c2bafce024

View File

@@ -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;