summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs
index b952657..96fcba2 100644
--- a/src/componentwrapper.rs
+++ b/src/componentwrapper.rs
@@ -152,9 +152,9 @@ components!(all:
Inventory () {panic!("inventory from parameters not implemented")};
Health (health: i64, maxhealth: i64);
Serialise () {panic!("serialise from parameters not implemented")};
- RoomExit (destination: String, dest_pos: String) {
+ RoomExit (destination: RoomId, dest_pos: String) {
RoomExit {
- destination: RoomId::from_str(&destination),
+ destination,
dest_pos: if dest_pos.is_empty() {
RoomPos::Unknown
} else {