add const

attempt to fix http://forums.wesnoth.org/viewtopic.php?f=5&t=41063&p=576561#p576561