Skip to content

Commit

Permalink
Use const shared ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo committed May 23, 2024
1 parent 55f496c commit 3c2f787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ bool Chat::talkToChannel(const Player& player, SpeakClasses type, const std::str
}

if (channelId == CHANNEL_GUILD) {
const auto rank = player.getGuildRank();
const auto& rank = player.getGuildRank();
if (rank && rank->level > 1) {
type = TALKTYPE_CHANNEL_O;
} else if (type != TALKTYPE_CHANNEL_Y) {
Expand Down

0 comments on commit 3c2f787

Please sign in to comment.