summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/mapspecs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 443ddfe..ecc5c9d 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -93,7 +93,7 @@ function grid_click(obj) {
x = tmp[2];
- if(mapdata[mapid].editMap == true) {
+ if(typeof(mapdata[mapid]) == 'Object' && mapdata[mapid].editMap == true) {
mapClick(obj);
return;
}