Fix logic for rover marshal test

This commit is contained in:
Marc Di Luzio 2020-07-19 18:57:22 +01:00
parent bffad84181
commit 77212c7258

View file

@ -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)
}