Abend
ich hab ein Problemchen mit der Source hab eben Boni hinzufügen 100% per Config gemacht aber jetzt kann ich mein Game nicht mehr compilen:
HTML Code:
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:4728: error: assignment of read-only location
char_item.cpp:4730: error: assignment of read-only location
char_item.cpp:4731: error: assignment of read-only location
char_item.cpp:4732: error: assignment of read-only location
char_item.cpp:4733: error: assignment of read-only location
char_item.cpp:4736: error: assignment of read-only location
char_item.cpp:4791: error: assignment of read-only location
char_item.cpp:4728-4736&4791
Code:
if(attr_always_add)
{
if(attr_always_5_add)
{
aiItemAttributeAddPercent[4] = 100;
} else {
aiItemAttributeAddPercent[0] = 100;
aiItemAttributeAddPercent[1] = 100;
aiItemAttributeAddPercent[2] = 100;
aiItemAttributeAddPercent[3] = 100;
}
} else if (attr_always_5_add) {
aiItemAttributeAddPercent[4] = 100;
}
&4791
Code:
if(attr_always_5_add)
{
aiItemAttributeAddPercent[4] = 100;
}