Skip to content

Commit

Permalink
Merge pull request #190 from ymo-4/set-server-name-fix
Browse files Browse the repository at this point in the history
fix set_server_name calling SetMapName

whoops D:
  • Loading branch information
Noxime authored Jul 22, 2024
2 parents db95b8c + 2c7d0a8 commit 4e529e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ impl Server {
pub fn set_server_name(&self, server_name: &str) {
let server_name = CString::new(server_name).unwrap();
unsafe {
sys::SteamAPI_ISteamGameServer_SetMapName(self.server, server_name.as_ptr());
sys::SteamAPI_ISteamGameServer_SetServerName(self.server, server_name.as_ptr());
}
}

Expand Down

0 comments on commit 4e529e0

Please sign in to comment.