diff --git a/plugins/tiletypes.cpp b/plugins/tiletypes.cpp index fd6d3735a..103a2dcfb 100644 --- a/plugins/tiletypes.cpp +++ b/plugins/tiletypes.cpp @@ -500,6 +500,12 @@ bool tryVariant(std::string value, TileType &paint) bool processTileType(color_ostream & out, TileType &paint, std::vector ¶ms, int start, int end) { + if (start == end) + { + out << "Missing argument." << std::endl; + return false; + } + int loc = start; std::string option = params[loc++]; std::string value = end <= loc ? "" : params[loc++];