equal
deleted
inserted
replaced
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; |