Fixed compile warning (follow-up to 04a1173)

- Special Thank @tmav94
This commit is contained in:
icxbb-xx 2014-11-09 10:37:46 +07:00
parent 1d2160758c
commit 66df36b0b2
2 changed files with 4 additions and 5 deletions

View File

@ -3762,7 +3762,7 @@ be seen by anyone else.
--------------------------------------- ---------------------------------------
*dispbottom "<message>",<color>; *dispbottom "<message>"{,<color>};
This command will send the given message with color into the invoking character's chat This command will send the given message with color into the invoking character's chat
window. The color format is in RGB (0xRRGGBB). The color is window. The color format is in RGB (0xRRGGBB). The color is

View File

@ -13407,12 +13407,11 @@ BUILDIN_FUNC(atcommand) {
* dispbottom("<message>"{,<color>}) * dispbottom("<message>"{,<color>})
* @param message * @param message
* @param color Hex color default (Green) * @param color Hex color default (Green)
* @author [Napster]
*/ */
BUILDIN_FUNC(dispbottom) BUILDIN_FUNC(dispbottom)
{ {
TBL_PC *sd=script_rid2sd(st); TBL_PC *sd=script_rid2sd(st);
int color; int color = 0;
const char *message; const char *message;
message = script_getstr(st,2); message = script_getstr(st,2);
@ -13421,7 +13420,7 @@ BUILDIN_FUNC(dispbottom)
if(sd) { if(sd) {
if (script_hasdata(st,3)) if (script_hasdata(st,3))
clif_messagecolor2(sd, color, message); clif_messagecolor2(sd, color, message); // [Napster]
else else
clif_disp_onlyself(sd, message, (int)strlen(message)); clif_disp_onlyself(sd, message, (int)strlen(message));
} }