rust/hedgewars-server/src/handlers.rs
changeset 15522 4a0b06b03199
parent 15520 fd3a20e9d095
child 15523 f4f6060b536c
--- a/rust/hedgewars-server/src/handlers.rs	Mon Dec 23 18:11:15 2019 +0300
+++ b/rust/hedgewars-server/src/handlers.rs	Mon Dec 23 18:55:25 2019 +0300
@@ -462,7 +462,7 @@
             response.warn(ROOM_CONFIG_SAVE_FAILED);
         }
         IoResult::LoadRoom(room_id, Some(contents)) => {
-            if let Some(ref mut room) = state.server.rooms.get_mut(room_id) {
+            if let Some(ref mut room) = state.server.get_room_mut(room_id) {
                 match room.set_saves(&contents) {
                     Ok(_) => response.add(server_chat(ROOM_CONFIG_LOADED.to_string()).send_self()),
                     Err(e) => {