Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-26 14:55:35 +0000
committerStijn Buys <ingar@osirion.org>2010-09-26 14:55:35 +0000
commit765927f9f0e9ca751e1d94bd86aaf47200dcdb81 (patch)
tree3eae4aeaad9b38ab8ea1d4287359542ebe4486a3 /src/core
parentaeef4449ce3c1bdc531fb90699fef68bd48ca644 (diff)
moved trading definitions from station.ini to the zone.ini
Diffstat (limited to 'src/core')
-rw-r--r--src/core/descriptions.cc2
-rw-r--r--src/core/descriptions.h6
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