Fix invalid vector index (bug #21402)
Merge branch 'master' of github.com:wesnoth/wesnoth-old