Fix compilation errors in RPC/RipplePathFind.cpp

This commit is contained in:
Tom Ritchford
2014-11-06 21:57:09 -05:00
parent daa4d16e61
commit 9a7f66cfe9

View File

@@ -154,11 +154,11 @@ Json::Value doRipplePathFind (RPC::Context& context)
++level;
}
if (context.params_.isMember("depth")
&& context.params_["depth"].isIntegral())
if (context.params.isMember("depth")
&& context.params["depth"].isIntegral())
{
int rLev = context.params_["search_depth"].asInt ();
if ((rLev < level) || (context.role_ == Config::ADMIN))
int rLev = context.params["search_depth"].asInt ();
if ((rLev < level) || (context.role == Role::ADMIN))
level = rLev;
}