[C++] Küçük Bir Fix - RemoteAttributeType İşlevi

Resim Yükle

Slaves

Admin
Admin
Üye
13 Nis 2025
1,108
520,745
885
Admin
www.mt2-pvpserverler.com
RemoteAttributeType işlevi için ufak bir iyileştirme, olası hataları önlemek için yararlı olacağı fikrindeyim.Ustaların yorumlarını bekliyorum. :)



Item_attribute.cpp girin ve aşağıdaki kodu arayın ;


C++:

bool CItem::RemoveAttributeType(BYTE bType)
{
int index = FindAttribute(bType);
return index != -1 && RemoveAttributeType(index);
}


Daha sonra bununla değiştirin ;


C++:

bool CItem::RemoveAttributeType(BYTE bType)
{
int index = FindAttribute(bType);
return index != -1 && RemoveAttributeAt(index);
}