From 5ecf73d90fb5cbb967acd37cdc5731efdbeece06 Mon Sep 17 00:00:00 2001 From: unitraxx Date: Sun, 30 Jun 2013 23:41:30 +0000 Subject: [PATCH] Fixed sign out issue. I forgot that asserts only get checked with debug builds. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13050 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/online/current_online_user.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/online/current_online_user.cpp b/src/online/current_online_user.cpp index ae7869d24..7df8191b2 100644 --- a/src/online/current_online_user.cpp +++ b/src/online/current_online_user.cpp @@ -101,9 +101,10 @@ bool CurrentOnlineUser::signIn( const irr::core::stringw &username, { if (rec_success =="yes") { - assert(result->get("token", &m_token)); - assert(result->get("username", &m_name)); - assert(result->get("userid", &m_id)); + int token_fetched = result->get("token", &m_token); + int username_fetched = result->get("username", &m_name); + int userid_fetched = result->get("userid", &m_id); + assert(token_fetched && username_fetched && userid_fetched); m_is_signed_in = true; m_is_guest = false; }