Fix bug in projection code.  found by "runningaway"

Signed-off-by: nppangband <nppangbanddev@verizon.net>