summaryrefslogtreecommitdiffstats
path: root/src/Generating/TestRailsGen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Generating/TestRailsGen.cpp')
-rw-r--r--src/Generating/TestRailsGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/TestRailsGen.cpp b/src/Generating/TestRailsGen.cpp
index 8256b55a0..72317eb67 100644
--- a/src/Generating/TestRailsGen.cpp
+++ b/src/Generating/TestRailsGen.cpp
@@ -76,7 +76,7 @@ protected:
{
for (cPlacedPieces::iterator itr = m_Pieces.begin(), end = m_Pieces.end(); itr != end; ++itr)
{
- cPrefab & Prefab = (cPrefab &)((*itr)->GetPiece());
+ const cPrefab & Prefab = static_cast<const cPrefab &>((*itr)->GetPiece());
Prefab.Draw(a_Chunk, *itr);
} // for itr - m_PlacedPieces[]
}