Index: src/xye_script.cpp
--- src/xye_script.cpp.orig
+++ src/xye_script.cpp
@@ -859,7 +859,7 @@ void Load_Lock(TiXmlElement* el)
         el->QueryIntAttribute("x",&LastX);
         el->QueryIntAttribute("y",&LastY);
         blockcolor c=GetElementBlockColor(el);
-    lock* bc=new lock(game::SquareN(LastX,LastY),c);
+    ::lock* bc=new ::lock(game::SquareN(LastX,LastY),c);
 }
 
 /* Load Key*/
