Update occlusion.cpp

Fix for array index error