]> git.stg.codes - stg.git/commitdiff
Handle cash changes properly.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Jan 2015 18:22:19 +0000 (20:22 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Jan 2015 18:22:19 +0000 (20:22 +0200)
projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp

index cd66ec9e037741a95368ceb03f9512acb9cc4e82..7c6a46bba374ed3e62a7098149552cb0b4dbf16a 100644 (file)
@@ -584,9 +584,11 @@ int CHG_USER::ApplyChanges()
                                            &m_store,
                                            m_cashMsg))
                 return -1;
-            else
-                if (!u->GetProperty().cash.Set(m_usr.cash.const_data(), &m_currAdmin, m_login, &m_store, m_cashMsg))
-                    return -1;
+        }
+        else
+        {
+            if (!u->GetProperty().cash.Set(m_usr.cash.const_data(), &m_currAdmin, m_login, &m_store, m_cashMsg))
+                return -1;
         }