From: <ken...@us...> - 2009-02-27 04:21:22
|
Revision: 3113 http://planeshift.svn.sourceforge.net/planeshift/?rev=3113&view=rev Author: kennygraunke Date: 2009-02-27 04:21:18 +0000 (Fri, 27 Feb 2009) Log Message: ----------- Fixed a bug where the primary skill was used instead of the secondary skill. Not sure of the ramifications of this; found by code inspection. Modified Paths: -------------- trunk/src/server/bulkobjects/psitem.cpp Modified: trunk/src/server/bulkobjects/psitem.cpp =================================================================== --- trunk/src/server/bulkobjects/psitem.cpp 2009-02-27 01:59:53 UTC (rev 3112) +++ trunk/src/server/bulkobjects/psitem.cpp 2009-02-27 04:21:18 UTC (rev 3113) @@ -2731,7 +2731,7 @@ int secSkill = skillArray->Get(count)->secSkillId; if(secSkill != 0) { - if (skillArray->Get(count)->minSecSkill >= (int)character->Skills().GetSkillRank((PSSKILL)priSkill)) + if (skillArray->Get(count)->minSecSkill >= (int)character->Skills().GetSkillRank((PSSKILL)secSkill)) { return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |