Off by 1 in parsing

This commit is contained in:
jl777
2019-02-05 20:43:16 -11:00
parent 64b55a0891
commit ef94a1d13d

View File

@@ -414,10 +414,10 @@ UniValue rogue_newgame(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
txfee = 10000;
if ( (params= cclib_reparse(&n,params)) != 0 )
{
if ( n > 1 )
if ( n > 0 )
{
maxplayers = juint(jitem(params,0),0);
if ( n > 2 )
if ( n > 1 )
buyin = jdouble(jitem(params,1),0) * COIN + 0.0000000049;
}
}