fix: replace a statement by an assigment

The statement had no effect. It's in a block intended for initialization (as shown in the line 639) so an assigment was probably the intended behaviour.

The graphical output is the same with or without this patch.

Detected by a warning from gcc:

spharm.c: In function ‘SpharmGenTest’:
spharm.c:640:15: warning: statement with no effect [-Wunused-value]
  640 |       objtype == 0;
      |       ~~~~~~~~^~~~
This commit is contained in:
Stéphane Blondon
2025-05-08 18:32:08 +02:00
parent 2a6f9b8582
commit e54a823b03

View File

@@ -637,7 +637,7 @@ void SpharmGenTest(int rendermode)
//objtype = 6; // make sure we end up back in same spot
} break;
default: // none found, so move to next one, and trigger re-gen
objtype == 0;
objtype = 0;
inited = 0;
break;
}