summaryrefslogtreecommitdiff
path: root/src/world.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.rs')
-rw-r--r--src/world.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/world.rs b/src/world.rs
index 5105df2..d7b5555 100644
--- a/src/world.rs
+++ b/src/world.rs
@@ -96,9 +96,7 @@ impl <'a, 'b>World<'a, 'b> {
.unwrap_or_else(|_err| // todo: what if player exists but can't be loaded for another reason?
PlayerState::new(playerid.clone())
);
- if &state.id != playerid {
- return Err(aerr!("Player ids do not match. Wanted {:?}, got {:?}", playerid, state.id));
- }
+ state.id = playerid.clone();
if state.room == Some(purgatory::purgatory_id()){
state.respawn();
}