From af76b9a0ae58dc8c87548053a5bc310ad6be25ce Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 1 Nov 2024 21:33:27 +0100 Subject: more small tweaks --- backend/ObjectFactory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backend/ObjectFactory.cpp') diff --git a/backend/ObjectFactory.cpp b/backend/ObjectFactory.cpp index a3a6d83..1256f98 100644 --- a/backend/ObjectFactory.cpp +++ b/backend/ObjectFactory.cpp @@ -25,8 +25,7 @@ Object * ObjectFactory::create_object(const UniversalObject & data) { } case WEAPON: { WeaponObject * object = new WeaponObject(data.name, data.description); - object->set_damage_min(data.min_value); - object->set_damage_max(data.max_value); + object->set_damage({ data.min_value, data.max_value }); return object; } default: break; -- cgit v1.2.3