if (cityTradeResources != null) {
Player player = game.getActivePlayer();
int playersTradeResources[] = tradeResources.get(player);
for (int i = 0; i < cityTradeResources.length; i++) {
playersTradeResources[i] += cityTradeResources[i];
game.post(new TradeResourceEvent(player, TradeResource.values()[i], cityTradeResources[i]));
}
}
}
}