Codechange: Make SpriteType, CargoSortType, SourceType and ScriptType enum classes. (#10663)
This avoids a (soft) namespace conflict between the four ST_* enums.
This commit is contained in:
@@ -26,7 +26,7 @@ INSTANTIATE_POOL_METHODS(CargoPacket)
|
||||
*/
|
||||
CargoPacket::CargoPacket()
|
||||
{
|
||||
this->source_type = ST_INDUSTRY;
|
||||
this->source_type = SourceType::Industry;
|
||||
this->source_id = INVALID_SOURCE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user