Skip to content

Commit

Permalink
fix: correct type for GetIsInTunnel (YoRyan/open-nec#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoRyan committed Jun 28, 2024
1 parent 559518a commit c00d012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/railworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ export class RailVehicle extends RenderedEntity {
*/
GetIsInTunnel() {
const [r] = Call(this.fn("GetIsInTunnel"));
return r as boolean;
return (r as number) === 1;
}

/**
Expand Down

0 comments on commit c00d012

Please sign in to comment.