error handling for position
This commit is contained in:
@@ -60,7 +60,7 @@ impl From<String> for Sprite {
|
||||
panic!("Bad room/position for sprite: {}", string);
|
||||
}
|
||||
|
||||
position = Some(Position::from(room_position[1].to_string()));
|
||||
position = Some(Position::from(room_position[1].to_string()).unwrap());
|
||||
} else if last_line.starts_with("COL") {
|
||||
colour_id = Some(last_line.replace("COL ", "").parse().unwrap());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user