Permalink
Browse files

Remove model check in getVehicleType luadef (fix mantis 9908)

  • Loading branch information...
qaisjp committed Jul 13, 2018
1 parent 94ecd6e commit b08f3cce86ce618ff1ba80edda960e1172f0a228
Showing with 2 additions and 5 deletions.
  1. +2 −5 Server/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp
@@ -348,11 +348,8 @@ int CLuaVehicleDefs::GetVehicleType(lua_State* luaVM)
if (!argStream.HasErrors())
{
if (ulModel >= 400 && ulModel < 610)
{
lua_pushstring(luaVM, CVehicleNames::GetVehicleTypeName(ulModel));
return 1;
}
lua_pushstring(luaVM, CVehicleNames::GetVehicleTypeName(ulModel));
return 1;
}
else
m_pScriptDebugging->LogCustom(luaVM, argStream.GetFullErrorMessage());

0 comments on commit b08f3cc

Please sign in to comment.