Cleans up the skill unit group storage (#6195)

* Fixes #2217.
* Adjusts the storage for skill unit group from DBMap to unordered_map.
* Removes the MAX_SKILLUNITGROUP limit.
* Cleans up memory management to utilize shared_ptr.
Thanks to @Lemongrass3110!
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
Aleos
2021-08-23 14:11:53 -04:00
committed by GitHub
parent abe40d1eff
commit a84e731f79
9 changed files with 250 additions and 244 deletions

View File

@@ -19412,7 +19412,7 @@ BUILDIN_FUNC(warpportal)
unsigned short mapindex;
int tpx;
int tpy;
struct skill_unit_group* group;
std::shared_ptr<s_skill_unit_group> group;
struct block_list* bl;
bl = map_id2bl(st->oid);