- Fixed a segmentation fault caused by notifying observers from ResourcesSelection::moveResource() in the middle of a movement.
- Changed some foreach loops so now they use references instead of copied values.