diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-12 13:28:06 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-12 13:28:06 +0200 |
commit | bee615b75b3cd98335beaa8f5a6c4487ccccb0fd (patch) | |
tree | 26180f7088ee6ad69832f7af46182606a8c66489 /src/Chunk.cpp | |
parent | Fixed many right click issues. (diff) | |
parent | Fixed a redstone sim failure with droppers. (diff) | |
download | cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.gz cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.bz2 cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.lz cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.xz cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.zst cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.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 79602e64e..8b2655cc9 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; } |