Project

General

Profile

Revision 352

corrected minor error

View differences:

map1.h
8 8
#include "xpm_utils.h"
9 9

  
10 10
static map_t* get_map1(void){
11
    char **map1         = xpm_load_xpm2("maps/map1.xpm2");
12
    char **map1_collide = xpm_load_xpm2("maps/map1_collide.xpm2");
13
    return map_ctor((const char *const *)map1_xpm, (const char *const *)map1_collide_xpm);
14
    free(map1); free(map1_collide);
11
    char **ret         = xpm_load_xpm2("maps/map1.xpm2");
12
    char **ret_collide = xpm_load_xpm2("maps/map1_collide.xpm2");
13
    return map_ctor((const char *const *)ret, (const char *const *)ret_collide);
14
    free(ret); free(ret_collide);
15 15
}
16 16

  
17 17
#endif /* end of include guard: MAP_H_INCLUDED */

Also available in: Unified diff