1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-30 23:23:32 +00:00

Fixed crash caused by ChainViewer

This commit is contained in:
Bryan Roe
2020-05-19 15:53:59 -07:00
parent 56cc4c1328
commit f6c254bd4c
2 changed files with 3 additions and 2 deletions

View File

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