mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 16:34:51 +01:00
Make object ID start at 1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user