Make object ID start at 1

This commit is contained in:
Andrew Gutekanst
2020-01-23 20:29:56 -05:00
parent 0ac35f8743
commit 3b443344a2

View File

@@ -27,9 +27,10 @@ type Stage struct {
// NewStage creates a new stage with intialized values.
func NewStage(ID string) *Stage {
s := &Stage{
id: ID,
objects: make(map[uint32]*StageObject),
clients: make(map[*Session]uint32),
id: ID,
objects: make(map[uint32]*StageObject),
clients: make(map[*Session]uint32),
gameObjectCount: 1,
}
return s