Browse Source

ia_call_function, vérification que « player » est bien une stratégie.

master
Bastien 8 years ago
committed by Squiz
parent
commit
3df2dcb038
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      main.c

+ 6
- 0
main.c View File

@ -37,6 +37,12 @@ enum bool ia_call_function(const struct player_t player, enum api_function_t api
void (*ia_function_pf)();
int a; enum hole_t b;
void *c, *d;
if(!player.ia_lib_p) {
#ifdef debug
fputs("the player is not a strategy.\n",stderr);
#endif
return false;
}
va_start(ap, result);
switch(api_function) {
case ia_lib_init:


Loading…
Cancel
Save