PDA

View Full Version : Striats codefix for setguild tested and working


Striat
07-09-2007, 02:06 PM
To fix this in perlparser.cpp

XS(XS__setguild);
XS(XS__setguild)
{
dXSARGS;
if (items != 2)
Perl_croak(aTHX_ "Usage: setguild(new_guild_id, new_rank)");

unsigned long new_guild_id = (unsigned long)SvUV(ST(0));
char new_rank = (char)*SvPV_nolen(ST(1));

quest_manager.setguild(new_guild_id, new_rank);

XSRETURN_EMPTY;
}
Change:

char new_rank = (char)*SvPV_nolen(ST(1));

To:
int new_rank = (int)SvIV(ST(1));

Recompile and you should be good to go.

Angelox
07-19-2007, 09:17 PM
This code is working fine also

Striat
07-20-2007, 06:25 PM
Credit for this then would actually go to Bleh:)

gernblan
08-26-2007, 10:56 AM
This ever get committed?

KLS
08-27-2007, 03:09 PM
I can check and see tonight.

KLS
08-31-2007, 01:13 AM
This has been previously committed.. okay so that wasn't that night but I did get to it!