Skip to content

Commit b08f3cc

Browse files
committed
Remove model check in getVehicleType luadef (fix mantis 9908)
1 parent 94ecd6e commit b08f3cc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Server/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,8 @@ int CLuaVehicleDefs::GetVehicleType(lua_State* luaVM)
348348

349349
if (!argStream.HasErrors())
350350
{
351-
if (ulModel >= 400 && ulModel < 610)
352-
{
353-
lua_pushstring(luaVM, CVehicleNames::GetVehicleTypeName(ulModel));
354-
return 1;
355-
}
351+
lua_pushstring(luaVM, CVehicleNames::GetVehicleTypeName(ulModel));
352+
return 1;
356353
}
357354
else
358355
m_pScriptDebugging->LogCustom(luaVM, argStream.GetFullErrorMessage());

0 commit comments

Comments
 (0)