]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp
Handle cash changes properly.
[stg.git] / 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;
                                            &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;
         }
 
 
         }