* Made script command getmapxy print a warning, if an invalid type is supplied (related r69, r8459).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14470 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
c1c7ed6666
commit
c0d9aa1c02
@ -9,6 +9,7 @@ Date Added
|
|||||||
- Fixed functions in db.c not being returned as pointer, causing warnings on VC6.
|
- Fixed functions in db.c not being returned as pointer, causing warnings on VC6.
|
||||||
* Fixed plug-in version getting checked against itself and a wrong operator being used for the check (bugreport:3952, since r9631). [Ai4rei]
|
* Fixed plug-in version getting checked against itself and a wrong operator being used for the check (bugreport:3952, since r9631). [Ai4rei]
|
||||||
* Fixed WFIFOL being used instead of WFIFOW for a short field of packet 0x2710 (bugreport:2819). [Ai4rei]
|
* Fixed WFIFOL being used instead of WFIFOW for a short field of packet 0x2710 (bugreport:2819). [Ai4rei]
|
||||||
|
* Made script command getmapxy print a warning, if an invalid type is supplied (related r69, r8459). [Ai4rei]
|
||||||
2010/11/16
|
2010/11/16
|
||||||
* Added a missing argument to a warning containing a format specifier. [Paradox924X]
|
* Added a missing argument to a warning containing a format specifier. [Paradox924X]
|
||||||
2010/11/15
|
2010/11/15
|
||||||
|
@ -11575,6 +11575,10 @@ BUILDIN_FUNC(getmapxy)
|
|||||||
if (sd && sd->hd)
|
if (sd && sd->hd)
|
||||||
bl = &sd->hd->bl;
|
bl = &sd->hd->bl;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
ShowWarning("script: buildin_getmapxy: Invalid type %d\n", type);
|
||||||
|
script_pushint(st,-1);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
if (!bl) { //No object found.
|
if (!bl) { //No object found.
|
||||||
script_pushint(st,-1);
|
script_pushint(st,-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user