From: <wel...@us...> - 2010-01-17 20:48:48
|
Revision: 5331 http://planeshift.svn.sourceforge.net/planeshift/?rev=5331&view=rev Author: weltall2 Date: 2010-01-17 20:48:36 +0000 (Sun, 17 Jan 2010) Log Message: ----------- made use of the amount of skills loaded by cache manager in place of the skill enum. we should remove all the use of it! Modified Paths: -------------- trunk/src/server/bulkobjects/pscharacter.cpp Modified: trunk/src/server/bulkobjects/pscharacter.cpp =================================================================== --- trunk/src/server/bulkobjects/pscharacter.cpp 2010-01-17 20:47:27 UTC (rev 5330) +++ trunk/src/server/bulkobjects/pscharacter.cpp 2010-01-17 20:48:36 UTC (rev 5331) @@ -833,7 +833,7 @@ // Load skills Result skillResult(db->Select("SELECT * FROM character_skills WHERE character_id=%u", use_id.Unbox())); - for ( int z = 0; z < PSSKILL_COUNT; z++ ) + for ( int z = 0; z < CacheManager::GetSingleton()->GetSkillAmount(); z++ ) { skills.SetSkillInfo( (PSSKILL)z, CacheManager::GetSingleton().GetSkillByID((PSSKILL)z), false ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |