Increased PLAYEDRACK_MAX, to avoid a crash when too many words were

played in a game
This commit is contained in:
Olivier Teulière 2004-07-04 18:50:30 +00:00
parent d2373e0fc0
commit ac04544f70

View file

@ -16,7 +16,7 @@
/* along with this program; if not, write to the Free Software */ /* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* $Id: game_internals.h,v 1.1 2004/04/08 09:43:06 afrab Exp $ */ /* $Id: game_internals.h,v 1.2 2004/07/04 18:50:30 ipkiss Exp $ */
#ifndef _GAMESTRUCT_H #ifndef _GAMESTRUCT_H
#define _GAMESTRUCT_H #define _GAMESTRUCT_H
@ -25,7 +25,10 @@
extern "C" { extern "C" {
#endif #endif
#define PLAYEDRACK_MAX 50 /* Number of played words.
* There are only 102 tiles, so we should be safe even if only one tile is
* played at each turn... */
#define PLAYEDRACK_MAX 102
struct tgame { struct tgame {
Dictionary dic; Dictionary dic;