Cleanup warnings in examples (#5467)

This commit is contained in:
Jeffery Myers 2026-01-03 13:38:51 -08:00 • committed by GitHub
commit b00cbdaf49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 83 additions and 80 deletions

View file

@ -66,7 +66,7 @@ int main(void)
// Grow flameRoot
for (int x = 2; x < flameWidth; x++)
{
unsigned short flame = flameRootBuffer[x];
unsigned char flame = flameRootBuffer[x];
if (flame == 255) continue;
flame += GetRandomValue(0, 2);
if (flame > 255) flame = 255;