fixed uninitialized values

This commit is contained in:
2021-10-09 19:18:18 +02:00
parent e938b05f52
commit b67bc671cf

View File

@@ -155,6 +155,12 @@ func (d *DemoMatchLoader) Setup(config *DemoMatchLoaderConfig) error {
d.loginKey = config.LoginKey d.loginKey = config.LoginKey
d.sentryFile = config.Sentry d.sentryFile = config.Sentry
d.serverList = config.ServerList d.serverList = config.ServerList
d.lock = config.Lock
d.dp = &DemoParser{}
err := d.dp.Setup(config.Db, config.Lock, config.Worker)
if err != nil {
return err
}
d.steamLogin = new(steam.LogOnDetails) d.steamLogin = new(steam.LogOnDetails)
d.steamLogin.Username = config.Username d.steamLogin.Username = config.Username