1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

silenced an uninitialized value warning

This commit is contained in:
Zeno Rogue 2020-05-22 15:28:54 +02:00
parent 2c7ab21151
commit 90cfc59c88

View File

@ -43,7 +43,7 @@ color_t rainbow_color(hyperpoint h) {
hue *= 6;
color_t res;
color_t res = 0;
if(hue<1) res = gradient(0xFF0000, 0xFFFF00, 0, hue, 1);
else if(hue<2) res = gradient(0x00FF00, 0xFFFF00, 2, hue, 1);