「🔨」 fix: fixed random skill issue

This commit is contained in:
KeyZox committed 2025-07-16 10:40:08 +02:00
1 parent d00e324679
commit e589500c05
1 file changed
+3 -2
+3 -2
View File
@@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/12 17:13:39 by adjoly #+# #+# */
/* Updated: 2025/05/29 12:08:41 by adjoly ### ########.fr */
/* Updated: 2025/07/16 10:39:39 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@@ -76,8 +76,9 @@ class ResourceManager {
auto it = std::find_if(_res.begin(), _res.end(), CompareId(id));
if (it != _res.end()) {
delete (*it);
auto oh = *it;
_res.erase(it);
delete oh;
}
}