From: <za...@us...> - 2010-10-18 16:52:05
|
Revision: 13492 http://pcgen.svn.sourceforge.net/pcgen/?rev=13492&view=rev Author: zaister Date: 2010-10-18 16:51:58 +0000 (Mon, 18 Oct 2010) Log Message: ----------- CODE-246: fix problem loading characters with a PrC that uses ADD:SPELLCASTER tags Modified Paths: -------------- Trunk/pcgen/code/src/java/pcgen/io/PCGVer2Parser.java Modified: Trunk/pcgen/code/src/java/pcgen/io/PCGVer2Parser.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/io/PCGVer2Parser.java 2010-10-18 14:39:23 UTC (rev 13491) +++ Trunk/pcgen/code/src/java/pcgen/io/PCGVer2Parser.java 2010-10-18 16:51:58 UTC (rev 13492) @@ -1778,17 +1778,8 @@ int pipeLoc = bonusString.indexOf('|'); if (pipeLoc != -1) { - CDOMObject target = aPCClass; - int bonusLevel = - Integer.parseInt(bonusString.substring(0, - pipeLoc)); - if (bonusLevel > 0) - { - target = thePC.getActiveClassLevel(aPCClass, bonusLevel); - } - bonusString = bonusString.substring(pipeLoc + 1); BonusAddition.applyBonus(bonusString, "", thePC, - target); + aPCClass); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |