diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-26 14:55:35 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-26 14:55:35 +0000 |
commit | 765927f9f0e9ca751e1d94bd86aaf47200dcdb81 (patch) | |
tree | 3eae4aeaad9b38ab8ea1d4287359542ebe4486a3 /src/core | |
parent | aeef4449ce3c1bdc531fb90699fef68bd48ca644 (diff) |
moved trading definitions from station.ini to the zone.ini
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/descriptions.cc | 2 | ||||
-rw-r--r-- | src/core/descriptions.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/descriptions.cc b/src/core/descriptions.cc index 26a5858..2cfab99 100644 --- a/src/core/descriptions.cc +++ b/src/core/descriptions.cc @@ -40,7 +40,7 @@ void ButtonDescription::set_alignment(Align align) button_align = align; } -void ButtonDescription::set_info(Info *info) +void ButtonDescription::set_info(const Info *info) { button_info = info; } diff --git a/src/core/descriptions.h b/src/core/descriptions.h index 05e92af..b1b0901 100644 --- a/src/core/descriptions.h +++ b/src/core/descriptions.h @@ -58,7 +58,7 @@ public: } /// button info record - inline Info *info() { + inline const Info *info() const { return button_info; } @@ -74,14 +74,14 @@ public: void set_alignment(Align align); /// set info record - void set_info(Info *info); + void set_info(const Info *info); private: std::string button_text; CommandType button_commandtype; std::string button_command; Align button_align; - Info *button_info; + const Info *button_info; }; /// description of an entity menu |