Skip to content

Commit

Permalink
fixed #1334 - player should be able to mount only on registred outfits
Browse files Browse the repository at this point in the history
  • Loading branch information
gunzino committed May 20, 2015
1 parent 183e4da commit ea9ad8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4285,6 +4285,11 @@ bool Player::toggleMount(bool mount)
sendCancelMessage(RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE);
return false;
}

const Outfit* playerOutfit = Outfits::getInstance()->getOutfitByLookType(getSex(), defaultOutfit.lookType);
if (!playerOutfit) {
return false;
}

uint8_t currentMountId = getCurrentMount();
if (currentMountId == 0) {
Expand Down

0 comments on commit ea9ad8e

Please sign in to comment.