summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-12 13:28:06 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-12 13:28:06 +0200
commitbee615b75b3cd98335beaa8f5a6c4487ccccb0fd (patch)
tree26180f7088ee6ad69832f7af46182606a8c66489 /src/Chunk.cpp
parentFixed many right click issues. (diff)
parentFixed a redstone sim failure with droppers. (diff)
downloadcuberite-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 '')
-rw-r--r--src/Chunk.cpp2
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;
}