summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-11 10:28:48 +0200
committerMattes D <github@xoft.cz>2014-09-11 10:28:48 +0200
commit9fd5df26d0c9e8c0f99a2a1dbf620f76eaa65be1 (patch)
treea3c6a5f599c340e7697f2709ec1d7e64dc9dacc7
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
downloadcuberite-9fd5df26d0c9e8c0f99a2a1dbf620f76eaa65be1.tar
cuberite-9fd5df26d0c9e8c0f99a2a1dbf620f76eaa65be1.tar.gz
cuberite-9fd5df26d0c9e8c0f99a2a1dbf620f76eaa65be1.tar.bz2
cuberite-9fd5df26d0c9e8c0f99a2a1dbf620f76eaa65be1.tar.lz
cuberite-9fd5df26d0c9e8c0f99a2a1dbf620f76eaa65be1.tar.xz
cuberite-9fd5df26d0c9e8c0f99a2a1dbf620f76eaa65be1.tar.zst
cuberite-9fd5df26d0c9e8c0f99a2a1dbf620f76eaa65be1.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 99e48df95..e75acb03b 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;
}