Jump to content

  •  

buczak

Member Since 25 Feb 2015
Offline Last Active Nov 02 2017 11:30 PM
-----

#56137 Costume Item Plugins

Posted by buczak on 06 May 2015 - 12:08 AM

Hello, I was having these errors:

Error	3	error C2039: 'base_pc_maxhp' : is not a member of 'status_interface'	c:usersandredocumentsherculeshercules-mastersrcpluginscostumeitem.c	552	1	costumeitemError	4	error C2039: 'base_pc_maxsp' : is not a member of 'status_interface'	c:usersandredocumentsherculeshercules-mastersrcpluginscostumeitem.c	577	1	costumeitem 

So I changed those lines:

sd->status.max_sp = status->base_pc_maxsp(sd, bstatus);sd->status.max_sp = status->base_pc_maxhp(sd, bstatus);

for this

 

 

sd->status.max_sp = status->get_base_maxsp(sd, bstatus);sd->status.max_sp = status->get_base_maxsp(sd, bstatus); 

With the changes, the errors are gone and compiled

But I do not know if my changes are correct

 

Is this right?