graph_gui.c
changeset 4354 684ab9249dae
parent 4353 2b941f2c325c
child 4365 714adbfd42c0
equal deleted inserted replaced
4353:2b941f2c325c 4354:684ab9249dae
  1121 {
  1121 {
  1122 	const Sign *si;
  1122 	const Sign *si;
  1123 	uint n = 0;
  1123 	uint n = 0;
  1124 
  1124 
  1125 	/* Create array for sorting */
  1125 	/* Create array for sorting */
  1126 	_sign_sort = realloc(_sign_sort, GetSignPoolSize() * sizeof(_sign_sort[0]));
  1126 	_sign_sort = realloc(_sign_sort, GetSignArraySize() * sizeof(_sign_sort[0]));
  1127 	if (_sign_sort == NULL) {
  1127 	if (_sign_sort == NULL) {
  1128 		error("Could not allocate memory for the sign-sorting-list");
  1128 		error("Could not allocate memory for the sign-sorting-list");
  1129 	}
  1129 	}
  1130 
  1130 
  1131 	FOR_ALL_SIGNS(si) _sign_sort[n++] = si;
  1131 	FOR_ALL_SIGNS(si) _sign_sort[n++] = si;