From 5c9845bb0f1eaf1cd57e65bb90f49f37147df73d Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Sun, 28 Oct 2018 13:32:19 +0800 Subject: [PATCH] fix --- src/cc/dice.cpp | 2 +- src/wallet/rpcwallet.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 92cbed9db..cdd8b6d70 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -974,7 +974,7 @@ std::string DiceBet(uint64_t txfee,char *planstr,uint256 fundingtxid,int64_t bet if ( entropytxs < 2 ) { CCerror = "Your dealer is broke, find a new casino."; fprintf(stderr,"%s\n", CCerror.c_str() ); - error = CCerror.c_str(); + error = (char *)CCerror.c_str(); return(""); } if ( myIsutxo_spentinmempool(entropytxid,0) != 0 ) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 19a14efdb..d8848b681 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -6152,7 +6152,7 @@ UniValue dicebet(const UniValue& params, bool fHelp) return(result); } if (amount > 0 && odds > 0) { - hex = DiceBet(0,name,fundingtxid,amount,odds); + hex = DiceBet(0,name,fundingtxid,amount,odds,error); if ( hex.size() > 0 ) { result.push_back(Pair("result", "success"));