From f1e4914b5f379f9821274e8ddc4196b152fcc9b0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 8 Dec 2007 14:50:41 +0000 Subject: (svn r11597) -Change: replace all remaining instances of (re|m|c)alloc with (Re|M|C)allocT and add a check for out-of-memory situations to the *allocT functions. --- src/texteff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/texteff.cpp') diff --git a/src/texteff.cpp b/src/texteff.cpp index eae4e0aed..c0a136c26 100644 --- a/src/texteff.cpp +++ b/src/texteff.cpp @@ -292,7 +292,7 @@ TextEffectID AddTextEffect(StringID msg, int x, int y, uint16 duration, TextEffe /* If there is none found, we grow the array */ if (i == _num_text_effects) { _num_text_effects += 25; - _text_effect_list = (TextEffect*) realloc(_text_effect_list, _num_text_effects * sizeof(TextEffect)); + _text_effect_list = ReallocT(_text_effect_list, _num_text_effects); for (; i < _num_text_effects; i++) _text_effect_list[i].string_id = INVALID_STRING_ID; i = _num_text_effects - 1; } -- cgit v1.2.3-54-g00ecf