diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-06 19:36:18 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-06 19:36:18 -0300 |
| commit | 76f6ecb7c809c6e93447efb91bdf50f2a9d50d6b (patch) | |
| tree | ece58733660361874acc912208d6482d639e556e /src/containers.hh | |
| parent | 850fa1c0e128a4fe05ffdbdabc9dad25a7530a3f (diff) | |
| download | game-76f6ecb7c809c6e93447efb91bdf50f2a9d50d6b.tar.gz game-76f6ecb7c809c6e93447efb91bdf50f2a9d50d6b.zip | |
some work on `crmain.cc` and `cract.cc` + merge creature headers
Diffstat (limited to 'src/containers.hh')
| -rw-r--r-- | src/containers.hh | 4 |
1 files changed, 2 insertions, 2 deletions
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<K, T> *Current = this->Entry->at(CurrentIndex); |
