summaryrefslogtreecommitdiff
path: root/src/newgrf_commons.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-12 13:00:29 +0000
committerrubidium <rubidium@openttd.org>2011-11-12 13:00:29 +0000
commit7fd1e1df81c3ed45e176f1bbf46d873b6cff316e (patch)
tree8f2ad83400a7897a066ff4f500bd0cdd150c1b93 /src/newgrf_commons.h
parentd61b90ac6fb63ee42f47ca53cacd5aa7d7b30bae (diff)
downloadopenttd-7fd1e1df81c3ed45e176f1bbf46d873b6cff316e.tar.xz
(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
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r--src/newgrf_commons.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h
index fd0dd699d..51667c216 100644
--- a/src/newgrf_commons.h
+++ b/src/newgrf_commons.h
@@ -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);
}
/**