gaydar: handle soul-less creatures and fix spacing

develop
lethosor 2016-03-04 17:54:32 -05:00
parent 12044852cc
commit 4b07a6001e
1 changed files with 3 additions and 3 deletions

@ -73,7 +73,7 @@ function getSexString(sex)
end end
local function determineorientation(unit) local function determineorientation(unit)
if unit.sex~=-1 then if unit.sex~=-1 and unit.status.current_soul then
local return_string='' local return_string=''
local orientation=unit.status.current_soul.orientation_flags local orientation=unit.status.current_soul.orientation_flags
if orientation.indeterminate then if orientation.indeterminate then