Fix server crash. Already fixed in sdl2 branch.