Update monster.cpp

Fix compilling error.