diff --git a/mapeditor.cpp b/mapeditor.cpp index bf4451c5..553f6335 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -307,6 +307,7 @@ namespace mapstream { int i = f.get(); if(i == -1) break; int j = f.get(), l = f.get(); + if(i >= 4) i = 3; if(i<0 || i >= mapeditor::USERSHAPEGROUPS) break; if(l<0 || l >= USERLAYERS) break;