Fixed some mod function bugs and stat caps.

This commit is contained in:
Tabasco
2013-05-27 15:32:59 -05:00
parent 510ce16f0e
commit fa0196b987
5 changed files with 52 additions and 27 deletions
+2 -2
View File
@@ -129,8 +129,8 @@ XS(XS_NPC_AddLootTable); /* prototype to pass -Wmissing-prototypes */
XS(XS_NPC_AddLootTable)
{
dXSARGS;
if (items != 1)
Perl_croak(aTHX_ "Usage: NPC::AddLootTable(THIS)");
if (items < 1)
Perl_croak(aTHX_ "Usage: NPC::AddLootTable(THIS, [loottable_id])");
{
NPC * THIS;