This commit is contained in:
alexey.min
2012-05-10 13:05:31 +00:00
parent 9fe62a4274
commit 070dc51e92
5 changed files with 48 additions and 1 deletions

View File

@@ -48,11 +48,23 @@ void UserSkill::setUnused()
void UserSkill::getSkillName( wchar_t *out, size_t maxCount )
{
char aname[256] = {0};
char aname[1024] = {0};
L2Data_DB_GetSkillNameByID( skillID, aname );
MultiByteToWideChar( CP_ACP, 0, aname, -1, out, maxCount );
}
void UserSkill::getSkillName( char *out, size_t maxCount )
{
out[0] = 0;
char *aname = (char *)malloc( 1024 );
if( aname )
{
L2Data_DB_GetSkillNameByID( skillID, aname );
strncpy( out, aname, maxCount );
free( aname );
}
}
void UserSkill::process_coolTime( unsigned int curTick )
{
//if( skillID == 0 ) return;