File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
MTA10_Server/mods/deathmatch/logic/luadefs
MTA10/mods/shared_logic/lua Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2056,7 +2056,7 @@ int CLuaFunctionDefs::SetTrainTrack ( lua_State* luaVM )
20562056
20572057 if ( !argStream.HasErrors () )
20582058 {
2059- if ( ( ucTrack >= 0 ) && ( ucTrack <= 3 ) ) {
2059+ if ( ( ucTrack <= 3 ) ) {
20602060 if ( CStaticFunctionDefinitions::SetTrainTrack ( *pVehicle, ucTrack ) )
20612061 {
20622062 lua_pushboolean ( luaVM, true );
Original file line number Diff line number Diff line change @@ -2777,7 +2777,7 @@ int CLuaVehicleDefs::SetTrainTrack ( lua_State* luaVM )
27772777
27782778 if ( !argStream.HasErrors () )
27792779 {
2780- if ( ( ucTrack >= 0 ) && ( ucTrack <= 3 ) ) {
2780+ if ( ( ucTrack <= 3 ) ) {
27812781 if ( CStaticFunctionDefinitions::SetTrainTrack ( pVehicle, ucTrack ) )
27822782 {
27832783 lua_pushboolean ( luaVM, true );
You can’t perform that action at this time.
0 commit comments