summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_industry.cpp2
-rw-r--r--src/ai/api/ai_station.cpp2
-rw-r--r--src/ai/api/ai_town.cpp2
-rw-r--r--src/ai/api/ai_waypoint.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/ai/api/ai_industry.cpp b/src/ai/api/ai_industry.cpp
index 3d7836cc2..686a5d3fe 100644
--- a/src/ai/api/ai_industry.cpp
+++ b/src/ai/api/ai_industry.cpp
@@ -28,7 +28,7 @@
char *industry_name = MallocT<char>(len);
::SetDParam(0, industry_id);
- ::GetString(industry_name, STR_INDUSTRY, &industry_name[len - 1]);
+ ::GetString(industry_name, STR_INDUSTRY_NAME, &industry_name[len - 1]);
return industry_name;
}
diff --git a/src/ai/api/ai_station.cpp b/src/ai/api/ai_station.cpp
index 519c1076f..244033f58 100644
--- a/src/ai/api/ai_station.cpp
+++ b/src/ai/api/ai_station.cpp
@@ -36,7 +36,7 @@
char *station_name = MallocT<char>(len);
::SetDParam(0, Station::Get(station_id)->index);
- ::GetString(station_name, STR_STATION, &station_name[len - 1]);
+ ::GetString(station_name, STR_STATION_NAME, &station_name[len - 1]);
return station_name;
}
diff --git a/src/ai/api/ai_town.cpp b/src/ai/api/ai_town.cpp
index 22e68234c..a1810a1c4 100644
--- a/src/ai/api/ai_town.cpp
+++ b/src/ai/api/ai_town.cpp
@@ -31,7 +31,7 @@
char *town_name = MallocT<char>(len);
::SetDParam(0, town_id);
- ::GetString(town_name, STR_TOWN, &town_name[len - 1]);
+ ::GetString(town_name, STR_TOWN_NAME, &town_name[len - 1]);
return town_name;
}
diff --git a/src/ai/api/ai_waypoint.cpp b/src/ai/api/ai_waypoint.cpp
index b98274b63..21804dda7 100644
--- a/src/ai/api/ai_waypoint.cpp
+++ b/src/ai/api/ai_waypoint.cpp
@@ -33,7 +33,7 @@
char *waypoint_name = MallocT<char>(len);
::SetDParam(0, waypoint_id);
- ::GetString(waypoint_name, STR_WAYPOINT_RAW, &waypoint_name[len - 1]);
+ ::GetString(waypoint_name, STR_WAYPOINT_NAME, &waypoint_name[len - 1]);
return waypoint_name;
}