fixed uninitialized values
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user