mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 19:11:46 +00:00

Fixes #4253. The schema's validation of ranges now rejects negative numbers, because the C++ code doesn't support them (both before and after this commit): * utils::parse_range("-7") will return {0,0}, because std::stoi("") throws invalid_argument. * src/map/location.cpp will parse it as -7, but that will never match an on-map coordinate