(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
This commit is contained in:
@@ -140,8 +140,8 @@ struct NewGRFSpriteLayout : ZeroedMemoryAllocator, DrawTileSprites {
|
||||
|
||||
virtual ~NewGRFSpriteLayout()
|
||||
{
|
||||
free(const_cast<DrawTileSeqStruct*>(this->seq));
|
||||
free(const_cast<TileLayoutRegisters*>(this->registers));
|
||||
free(this->seq);
|
||||
free(this->registers);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user