fix warning for hideWarningLayer in Player.cpp