]> git.stg.codes - stg.git/commitdiff
Added default constructor for resetable USER_CONF.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Jan 2015 18:04:10 +0000 (20:04 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Jan 2015 18:04:10 +0000 (20:04 +0200)
include/stg/user_conf.h

index 465cfef4c7e4e2a8cc70fd88322a0708711c0698..5987c4d8c6b9d51c93c980877b8b59da0558e7ed 100644 (file)
@@ -50,6 +50,9 @@ struct USER_CONF
 //-----------------------------------------------------------------------------
 struct USER_CONF_RES
 {
 //-----------------------------------------------------------------------------
 struct USER_CONF_RES
 {
+    USER_CONF_RES()
+        : userdata(USERDATA_NUM)
+    {}
     USER_CONF_RES & operator=(const USER_CONF & uc)
     {
         userdata.resize(USERDATA_NUM);
     USER_CONF_RES & operator=(const USER_CONF & uc)
     {
         userdata.resize(USERDATA_NUM);