From e589500c054dac3dd81b6772d3e45a22618bc08c Mon Sep 17 00:00:00 2001 From: adjoly Date: Wed, 16 Jul 2025 10:40:08 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20random=20skill=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/server/ResourceManager.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/server/ResourceManager.hpp b/includes/server/ResourceManager.hpp index 5c1785f..a386c5b 100644 --- a/includes/server/ResourceManager.hpp +++ b/includes/server/ResourceManager.hpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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; } }