Commit 19ca945 1 parent 70b0d3d commit 19ca945 Copy full SHA for 19ca945
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ class building {
510
510
void industry_add_workers (int fid);
511
511
void industry_remove_worker (int fid);
512
512
513
- static const metainfo &get_info (pcstr type);
513
+ static const metainfo &get_info (const xstring type);
514
514
515
515
template <typename T>
516
516
building_impl *acquire_impl () {
@@ -530,7 +530,7 @@ class building_impl {
530
530
bool fire_proof;
531
531
bool damage_proof;
532
532
bool is_draggable;
533
- bstring64 meta_id;
533
+ xstring meta_id;
534
534
metainfo meta;
535
535
e_resource input_resource;
536
536
e_resource input_resource_second;
Original file line number Diff line number Diff line change 5
5
6
6
#include " js/js_game.h"
7
7
8
- std::map<std::string , metainfo> g_building_metainfo;
8
+ std::map<xstring , metainfo> g_building_metainfo;
9
9
10
10
ANK_REGISTER_CONFIG_ITERATOR (config_load_building_info);
11
11
void config_load_building_info () {
@@ -17,6 +17,6 @@ void config_load_building_info() {
17
17
});
18
18
}
19
19
20
- const metainfo &building::get_info (pcstr type) {
20
+ const metainfo &building::get_info (const xstring type) {
21
21
return g_building_metainfo[type];
22
22
}
You can’t perform that action at this time.
0 commit comments