[Super-tux-devel] Segmentation fault in gameloop.c
Brought to you by:
wkendrick
From: Armin D. <ar...@ar...> - 2003-12-31 08:47:07
|
In function 'shape' the following code may lead to a segmentation fault if yy is exactly 15, because the array tiles has got only 15 elements (0 to 14). if (yy >= 0 && yy <= 15 && xx >= 0 && xx <= level_width) c = tiles[yy][xx]; Changing the '<=' to '<' will fix this, I think.. I encountered this using MinGW on a Windows XP machine, where the blue screen guys look somewhat familiar... |