Fixed Bug #7311

Special Thanks to mleo1, Masao!~
http://hercules.ws/board/tracker/issue-7311-hideonnpc-not-working/

Signed-off-by: shennetsind <ind@henn.et>