mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 08:55:31 +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.
|
// NewStage creates a new stage with intialized values.
|
||||||
func NewStage(ID string) *Stage {
|
func NewStage(ID string) *Stage {
|
||||||
s := &Stage{
|
s := &Stage{
|
||||||
id: ID,
|
id: ID,
|
||||||
objects: make(map[uint32]*StageObject),
|
objects: make(map[uint32]*StageObject),
|
||||||
clients: make(map[*Session]uint32),
|
clients: make(map[*Session]uint32),
|
||||||
|
gameObjectCount: 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
|||||||
Reference in New Issue
Block a user