fixed minor bug in Bank class

This commit is contained in:
Leonardo Brandenberger 2021-12-04 16:43:15 +01:00
parent 5eece3125b
commit 79a0b9175e
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@ package ch.zhaw.catan;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
public class Bank { public class Bank {
private HashMap<Config.Resource, Integer> resources; private HashMap<Config.Resource, Integer> resources = new HashMap<>();
public Bank(){ public Bank(){
resources.putAll(Config.INITIAL_RESOURCE_CARDS_BANK); resources.putAll(Config.INITIAL_RESOURCE_CARDS_BANK);