Merge pull request #319 from SimoneStarace/patch-2

Fixed the LuaCheckArgs in CclShowMapLocation
This commit is contained in:
Tim Felgentreff 2021-03-07 21:46:08 +01:00 committed by GitHub
commit 2eb5205563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ static int CclShowMapLocation(lua_State *l)
// Put a unit on map, use its properties, except for
// what is listed below
LuaCheckArgs(l, 4);
LuaCheckArgs(l, 5);
const char *unitname = LuaToString(l, 5);
CUnitType *unitType = UnitTypeByIdent(unitname);
if (!unitType) {