Don't dereference NULL pointers
Fixed changesex
Merge pull request #32 from nclx/originalcopy

Fixed changesex
Allow creature id in Lua metatable functions

This fixes issue #31
Merge remote-tracking branch 'upstream/master'