Fix write past end of array.

Found by cppcheck.
This commit is contained in:
Guus Sliepen 2011-08-29 10:58:17 +02:00
parent ac71e3d3ec
commit 7607bc4142
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ void initShop()
shopItems[i + 8].y = 200;
}
for (int i = 0 ; i < 8 ; i++)
for (int i = 0 ; i < 7 ; i++)
{
shopItems[i + 10].x = 350 + (i * 50);
shopItems[i + 10].y = 260;