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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user