Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #007175

  • 0 - None Assigned

  • Done

Issue Confirmations

  • Yes (0)No (0)
Photo

Small warning @clif->colormes

Posted by Igniz on 21 April 2013 - 05:27 AM

From my compiler (debian)
pc.c:4624: warning: passing argument 1 of âclif->colormesâ makes integer from pointer without a cast
pc.c:4624: note: expected âintâ but argument is of type âstruct map_session_data *â


hum can you please paste your pc.c line 4624?

	/**
	 * Only Rune Knights may use runes
	 **/
	if( itemdb_is_rune(nameid) && (sd->class_&MAPID_THIRDMASK) != MAPID_RUNE_KNIGHT )
		return 0;
	/**
	 * Only GCross may use poisons
	 **/
	else if( itemdb_is_poison(nameid) && (sd->class_&MAPID_THIRDMASK) != MAPID_GUILLOTINE_CROSS )
		return 0;

	if( item->mapdeny[sd->bl.m].deny_flag ){
		char e_msg[100];
		sprintf(e_msg,"Item Failed. [%s] is disabled on this map.",itemdb_jname(sd->status.inventory[n].nameid));
		clif->colormes(sd,COLOR_RED,e_msg);		<-- Here
		return 0;
	}
	//Gender check
	if(item->sex != 2 && sd->status.sex != item->sex)
		return 0;
	//Required level check
	if(item->elv && sd->status.base_level < (unsigned int)item->elv)
		return 0;

#ifdef RENEWAL
	if(item->elvmax && sd->status.base_level > (unsigned int)item->elvmax)
		return 0;
#endif


you're out of date or out of sync (well both) i think oo in latest that clif_colormes thing is sd->fd not sd

Ind 
changed status to: Done