From 79a0b9175e7fcbdd11301aa492309b1ca036ea4a Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Sat, 4 Dec 2021 16:43:15 +0100 Subject: [PATCH] fixed minor bug in Bank class --- src/ch/zhaw/catan/Bank.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch/zhaw/catan/Bank.java b/src/ch/zhaw/catan/Bank.java index f44482d..5b0d0a4 100644 --- a/src/ch/zhaw/catan/Bank.java +++ b/src/ch/zhaw/catan/Bank.java @@ -2,10 +2,10 @@ package ch.zhaw.catan; import java.util.HashMap; import java.util.List; -import java.util.Map; + public class Bank { - private HashMap resources; + private HashMap resources = new HashMap<>(); public Bank(){ resources.putAll(Config.INITIAL_RESOURCE_CARDS_BANK);