Fix logic for rover marshal test
This commit is contained in:
parent
bffad84181
commit
77212c7258
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ func (g *NoiseWorldGen) GetObject(v maths.Vector) (obj Object) {
|
|||
|
||||
// Marshal the rover data into the object data
|
||||
b, err := json.Marshal(r)
|
||||
if err == nil {
|
||||
if err != nil {
|
||||
log.Fatalf("couldn't marshal rover, should never fail: %s", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue