From 76f6ecb7c809c6e93447efb91bdf50f2a9d50d6b Mon Sep 17 00:00:00 2001 From: fusion32 Date: Fri, 6 Jun 2025 19:36:18 -0300 Subject: some work on `crmain.cc` and `cract.cc` + merge creature headers --- src/containers.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/containers.hh') diff --git a/src/containers.hh b/src/containers.hh index 2533445..fafe5b7 100644 --- a/src/containers.hh +++ b/src/containers.hh @@ -137,10 +137,10 @@ struct priority_queue{ delete Entry; } - void insert(K Key, T *Data){ + void insert(K Key, T Data){ this->Entries += 1; int CurrentIndex = this->Entries; - *this->Entry->at(CurrentIndex) = {Key, *Data}; + *this->Entry->at(CurrentIndex) = {Key, Data}; while(CurrentIndex > 1){ int ParentIndex = CurrentIndex / 2; priority_queue_entry *Current = this->Entry->at(CurrentIndex); -- cgit v1.2.3