mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-06 18:43:46 +00:00
Fixed crash caused by ChainViewer
This commit is contained in:
@@ -2275,6 +2275,7 @@ void ILibDuktape_ChainViewer_PostSelect(void* object, int slct, fd_set *readset,
|
||||
duk_swap_top(ctx, -2); // [this][list][RES][this]
|
||||
duk_push_string(ctx, m); // [this][list][RES][this][str]
|
||||
duk_pcall_method(ctx, 1); duk_pop(ctx); // [this][list]
|
||||
ILibMemory_Free(m);
|
||||
}
|
||||
|
||||
duk_set_top(ctx, top);
|
||||
|
||||
@@ -1893,9 +1893,9 @@ void ILibAddToChain(void *Chain, void *object)
|
||||
void ILibPrependToChain(void *Chain, void *object)
|
||||
{
|
||||
//
|
||||
// Add link to the front of the chain (Linked List)
|
||||
// Add link to the front of the chain (Linked List), right after the Timer
|
||||
//
|
||||
ILibLinkedList_AddHead(((ILibBaseChain*)Chain)->Links, object);
|
||||
ILibLinkedList_InsertAfter(ILibLinkedList_GetNode_Head(((ILibBaseChain*)Chain)->Links), object);
|
||||
((ILibChain_Link*)object)->ParentChain = Chain;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user