diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-09-17 19:47:33 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-09-17 19:47:33 +0200 |
commit | 045d54e0e28a9338b171c93c5bbc9ccba4c79ef1 (patch) | |
tree | 58e083f5b1f97baf6de712485d3629bdcac275a8 /src/Chunk.cpp | |
parent | Added first test to show the object can be created (diff) | |
parent | BungeeCord compatibility: don't overwrite UUID / properties. (diff) | |
download | cuberite-045d54e0e28a9338b171c93c5bbc9ccba4c79ef1.tar cuberite-045d54e0e28a9338b171c93c5bbc9ccba4c79ef1.tar.gz cuberite-045d54e0e28a9338b171c93c5bbc9ccba4c79ef1.tar.bz2 cuberite-045d54e0e28a9338b171c93c5bbc9ccba4c79ef1.tar.lz cuberite-045d54e0e28a9338b171c93c5bbc9ccba4c79ef1.tar.xz cuberite-045d54e0e28a9338b171c93c5bbc9ccba4c79ef1.tar.zst cuberite-045d54e0e28a9338b171c93c5bbc9ccba4c79ef1.zip |
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r-- | src/Chunk.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp index 46520eb56..7f00ee190 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -2215,7 +2215,7 @@ bool cChunk::DoWithRedstonePoweredEntityAt(int a_BlockX, int a_BlockY, int a_Blo } } - if (a_Callback.Item((cRedstonePoweredEntity *)*itr)) + if (a_Callback.Item(dynamic_cast<cRedstonePoweredEntity *>(*itr))) // Needs dynamic_cast due to multiple inheritance { return false; } |