Skip to content

Commit

Permalink
Source ID from bonusing objects is not object index but object type. …
Browse files Browse the repository at this point in the history
…Fixes at least partially #1822
  • Loading branch information
IvanSavenko committed Jul 7, 2014
1 parent ec7e587 commit aaf314b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/NetPacksLib.cpp
Expand Up @@ -263,8 +263,7 @@ DLL_LINKAGE void GiveBonus::applyGs( CGameState *gs )

if(!bdescr.message.size()
&& bonus.source == Bonus::OBJECT
&& (bonus.type == Bonus::LUCK || bonus.type == Bonus::MORALE)
&& gs->map->objects[bonus.sid]->ID == Obj::EVENT) //it's morale/luck bonus from an event without description
&& (bonus.type == Bonus::LUCK || bonus.type == Bonus::MORALE))
{
descr = VLC->generaltexth->arraytxt[bonus.val > 0 ? 110 : 109]; //+/-%d Temporary until next battle"
}
Expand Down

0 comments on commit aaf314b

Please sign in to comment.