Fixed bug in LayerCache::update() that led to a problem with Layer::setInstancesVisible(). fixes #851
Merge branch 'master' of https://github.com/fifengine/fifengine