Change the addition for proper ordering
authorLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Mon, 11 Mar 2024 13:39:21 +0000 (14:39 +0100)
committerLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Mon, 11 Mar 2024 13:39:21 +0000 (14:39 +0100)
commit3cb01aaf8cdf897f8a1619887b6856d52ac289c9
treeabdac26c35770ea153ab25c3ffa30ad1b36957fc
parent0eccd8eea8c2caba4f9c52b7aaa3991eb6813505
Change the addition for proper ordering

The boss addition relied on ft_vec_append which makes the new entry be
at the end. This messes with the ordering as added entries are ready to
be defeated hence should be at the top. This commit uses insert to
insert the new entry to the very top which conserves the ordering
property.
src/main.c