Tiny setPVPMode fix

This commit is contained in:
Sam
2013-11-19 00:55:42 +01:00
parent 4d656f8bd1
commit 69ae324676
2 changed files with 5 additions and 5 deletions

View File

@@ -1229,6 +1229,8 @@ void Game::setPVPMode(Otc::PVPModes pvpMode)
{
if(!canPerformGameAction())
return;
if(!g_game.getFeature(Otc::GameFeature::PVPModes))
return;
if(m_pvpMode == pvpMode)
return;
m_pvpMode = pvpMode;