mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 03:42:41 +01:00
Codechange: do not implicitly convert during assignment to StrongType
This commit is contained in:
@@ -83,7 +83,7 @@ static inline bool StoryPageElementTypeRequiresText(StoryPageElementType type)
|
||||
TileIndex reftile{};
|
||||
switch (type) {
|
||||
case SPET_LOCATION:
|
||||
reftile = reference;
|
||||
reftile = TileIndex(reference);
|
||||
break;
|
||||
case SPET_GOAL:
|
||||
case SPET_BUTTON_PUSH:
|
||||
@@ -132,7 +132,7 @@ static inline bool StoryPageElementTypeRequiresText(StoryPageElementType type)
|
||||
TileIndex reftile{};
|
||||
switch (type) {
|
||||
case ::SPET_LOCATION:
|
||||
reftile = reference;
|
||||
reftile = TileIndex(reference);
|
||||
break;
|
||||
case ::SPET_GOAL:
|
||||
case ::SPET_BUTTON_PUSH:
|
||||
|
||||
Reference in New Issue
Block a user