Skip to content

Commit

Permalink
change Player::get_id type from usize to i32
Browse files Browse the repository at this point in the history
  • Loading branch information
Sreyas-Sreelal committed Aug 18, 2024
1 parent d4622a6 commit 4b25c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omp-gdk/src/scripting/players/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,8 @@ impl Player {
dialogs::functions::Dialog_Hide(self)
}

pub fn get_id(&self) -> usize {
functions::Player_GetID(self) as usize
pub fn get_id(&self) -> i32 {
functions::Player_GetID(self) as i32
}
pub fn from_id(playerid: i32) -> Option<Player> {
functions::Player_FromID(playerid)
Expand Down

0 comments on commit 4b25c80

Please sign in to comment.