Update CEntity.cpp