0

Protect against optional marker variable

This commit is contained in:
Andrew Chin
2017-02-19 11:46:44 -05:00
parent 7af5375df9
commit 7a6b9973c2

View File

@@ -224,7 +224,7 @@ overviewer.util = {
if (overviewer.collections.haveSigns == true) {
// if there are markers for this tileset, create them now
if (obj.path in markers) {
if ((typeof markers !== 'undefined') && (obj.path in markers)) {
console.log("this tileset has markers:", obj);
for (var mkidx = 0; mkidx < markers[obj.path].length; mkidx++) {