src/texteff.cpp
changeset 8533 a9b708fe4a00
parent 8345 6caa3fdb972c
child 8609 8c0c3e9dd6a0
equal deleted inserted replaced
8532:3099f32f9bfd 8533:a9b708fe4a00
   290 	}
   290 	}
   291 
   291 
   292 	/* If there is none found, we grow the array */
   292 	/* If there is none found, we grow the array */
   293 	if (i == _num_text_effects) {
   293 	if (i == _num_text_effects) {
   294 		_num_text_effects += 25;
   294 		_num_text_effects += 25;
   295 		_text_effect_list = (TextEffect*) realloc(_text_effect_list, _num_text_effects * sizeof(TextEffect));
   295 		_text_effect_list = ReallocT<TextEffect>(_text_effect_list, _num_text_effects);
   296 		for (; i < _num_text_effects; i++) _text_effect_list[i].string_id = INVALID_STRING_ID;
   296 		for (; i < _num_text_effects; i++) _text_effect_list[i].string_id = INVALID_STRING_ID;
   297 		i = _num_text_effects - 1;
   297 		i = _num_text_effects - 1;
   298 	}
   298 	}
   299 
   299 
   300 	te = &_text_effect_list[i];
   300 	te = &_text_effect_list[i];