Update MapEditor.cpp