Skip to content
This repository was archived by the owner on Dec 4, 2020. It is now read-only.

Commit b40d150

Browse files
committed
Trust: replace GetRandomNumber with GetRandomElement
1 parent 7a27581 commit b40d150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map/ai/helpers/gambits_container.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ bool CGambitsContainer::TryTrustSkill()
558558
{
559559
case G_SELECT::RANDOM:
560560
{
561-
chosen_skill = tp_skills.at(tpzrand::GetRandomNumber<std::size_t>(tp_skills.size()));
561+
chosen_skill = tpzrand::GetRandomElement(tp_skills);
562562
break;
563563
}
564564
case G_SELECT::HIGHEST: // Form the best possible skillchain

0 commit comments

Comments
 (0)