cleanup and bugfixes

This commit is contained in:
Llywelwyn 2023-08-16 01:23:57 +01:00
parent d439ff6d3f
commit 2ba7cfad8d
7 changed files with 20 additions and 24 deletions

View file

@ -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;