xNetHack
xNetHack copied to clipboard
Fix some minor issues with searmsg
searmsg used 'const' qualifier for the object parameter, but it could then be modified as long as obj != &cg.zeroobj (by cxname -> xname -> xname_flags changing dknown, bknown, etc). Eliminate the const qualifier from the parameter.
Another issue: magr was dereferenced before the guard against !magr, so move it down after the guard.