cleanup and bugfixes
This commit is contained in:
parent
d439ff6d3f
commit
2ba7cfad8d
7 changed files with 20 additions and 24 deletions
|
|
@ -50,7 +50,7 @@ impl MasterDungeonMap {
|
|||
/// Gets a map by ID from the MasterDungeonMap
|
||||
pub fn get_map(&self, id: i32) -> Option<Map> {
|
||||
if self.maps.contains_key(&id) {
|
||||
let mut result = self.maps[&id].clone();
|
||||
let result = self.maps[&id].clone();
|
||||
return Some(result);
|
||||
} else {
|
||||
return None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue