mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-21 17:46:17 +00:00
Added array bounds check to textures_bunnymark
This commit is contained in:
@@ -53,6 +53,8 @@ int main(void)
|
||||
{
|
||||
// Create more bunnies
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
if (bunniesCount < MAX_BUNNIES)
|
||||
{
|
||||
bunnies[bunniesCount].position = GetMousePosition();
|
||||
bunnies[bunniesCount].speed.x = (float)GetRandomValue(-250, 250)/60.0f;
|
||||
@@ -63,6 +65,7 @@ int main(void)
|
||||
bunniesCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Update bunnies
|
||||
for (int i = 0; i < bunniesCount; i++)
|
||||
|
||||
Reference in New Issue
Block a user