Update spot.cpp