(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
This commit is contained in:
@@ -38,7 +38,7 @@ static SpriteCache *AllocateSpriteCache(uint index)
|
||||
|
||||
DEBUG(sprite, 4, "Increasing sprite cache to %d items (%d bytes)", items, items * sizeof(*_spritecache));
|
||||
|
||||
ReallocT(&_spritecache, items);
|
||||
_spritecache = ReallocT(_spritecache, items);
|
||||
|
||||
if (_spritecache == NULL) {
|
||||
error("Unable to allocate sprite cache of %d items (%d bytes)", items, items * sizeof(*_spritecache));
|
||||
|
Reference in New Issue
Block a user