Apply rvollmert's patch to fix [2164276].

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7237 c06c8d41-db1a-0410-9941-cceddc491573

Created by  dolorous  on October 13, 2008
OCRWXF72GCZBV7ZQ4VSTVRBBFT2CT64IGSDL4FDL5IILWLNVBOXQC
Change contents