rust/lib-hedgewars-engine/src/lib.rs
changeset 15265 07e909ba4203
parent 14854 aed75d439027
child 15759 c929e25a7da2
--- a/rust/lib-hedgewars-engine/src/lib.rs	Thu Jul 25 14:23:25 2019 +0200
+++ b/rust/lib-hedgewars-engine/src/lib.rs	Thu Jul 25 15:18:00 2019 +0200
@@ -118,7 +118,7 @@
 pub extern "C" fn send_ipc(engine_state: &mut EngineInstance, buf: *const u8, size: usize) {
     unsafe {
         (*engine_state)
-            .ipc
+            .ipc_channel
             .write(std::slice::from_raw_parts(buf, size))
             .unwrap();
     }
@@ -128,7 +128,7 @@
 pub extern "C" fn read_ipc(engine_state: &mut EngineInstance, buf: *mut u8, size: usize) -> usize {
     unsafe {
         (*engine_state)
-            .ipc
+            .ipc_channel
             .read(std::slice::from_raw_parts_mut(buf, size))
             .unwrap_or(0)
     }