finish setup data insertion, add world insertion
This commit is contained in:
@@ -32,6 +32,7 @@ func (w *Wall) ToDB(dest *db.Wall) bool {
|
||||
dest.ID = w.ID
|
||||
w.Threshold.ToDB(&dest.Threshold)
|
||||
|
||||
dest.C = make([]int, len(w.C))
|
||||
copy(dest.C, w.C)
|
||||
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user