hi.. can someone help me, how do i fix this error after compiling? it says:
warning C4700: uninitialized local variable 'tstatus' used
struct skill_condition skill_get_requirement(struct map_session_data* sd, uint16 skill_id, uint16 skill_lv) {
struct skill_condition req;
struct status_data *st;
struct status_data *tstatus;
struct status_change *sc;
int i,hp_rate,sp_rate, sp_skill_rate_bonus = 100;
uint16 idx;
i tried to add the red colored code in the block, how can i fix the error? anyone willing to help?
thanks..
warning C4700: uninitialized local variable 'tstatus' used
struct skill_condition skill_get_requirement(struct map_session_data* sd, uint16 skill_id, uint16 skill_lv) {
struct skill_condition req;
struct status_data *st;
struct status_data *tstatus;
struct status_change *sc;
int i,hp_rate,sp_rate, sp_skill_rate_bonus = 100;
uint16 idx;
i tried to add the red colored code in the block, how can i fix the error? anyone willing to help?
Last edited by a moderator: