fixed naming

This commit is contained in:
Fraser Graham 2013-11-08 22:59:56 -08:00
parent 34f5d6876d
commit 9de2b51f46
1 changed files with 2 additions and 2 deletions

View File

@ -197,11 +197,11 @@ func addPlayer(ws *websocket.Conn) {
ws: ws,
}
for _, stats := range conf.Stats {
for name, stats := range conf.Stats {
r := Robot{
Stats: DeriveStats(stats),
Id: idg.Hash(),
Name: clientid.Name,
Name: name,
Health: 10,
Scanners: make([]Scanner, 0)}
r.Health = r.Stats.Hp