Update scene.cpp

fix list iterators incompatible