1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Store RiverType by value, handle by reference

This commit is contained in:
Tomasz Zieliński
2022-09-26 09:51:36 +02:00
parent 11dd71515a
commit f804f8a326
8 changed files with 39 additions and 30 deletions

View File

@@ -126,7 +126,7 @@ CCastleEvent::CCastleEvent() : town(nullptr)
TerrainTile::TerrainTile():
terType(nullptr),
terView(0),
riverType(VLC->terrainTypeHandler->rivers()[0]),
riverType(const_cast<RiverType*>(&VLC->terrainTypeHandler->rivers()[0])),
riverDir(0),
roadType(VLC->terrainTypeHandler->roads()[0]),
roadDir(0),