Fix setResourceMap algorithm

source city list was not clear; add list.clear()