mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7854] Fixed typo in random text selection code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
4e748b3786
commit
83beb6ec1d
2 changed files with 3 additions and 3 deletions
|
|
@ -328,8 +328,8 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
|
|||
switch( rand()%3 )
|
||||
{
|
||||
case 0: temp = action.text.TextId1; break;
|
||||
case 2: temp = action.text.TextId2; break;
|
||||
case 3: temp = action.text.TextId3; break;
|
||||
case 1: temp = action.text.TextId2; break;
|
||||
case 2: temp = action.text.TextId3; break;
|
||||
}
|
||||
}
|
||||
else if (action.text.TextId2 && urand(0,1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue