mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
markid fix
FIXED: returning markId rather than id
This commit is contained in:
2
mist.lua
2
mist.lua
@@ -7798,7 +7798,7 @@ do
|
|||||||
else
|
else
|
||||||
for mEntry, mData in pairs(mist.DBs.markList) do
|
for mEntry, mData in pairs(mist.DBs.markList) do
|
||||||
if id == mData.name or id == mData.id then
|
if id == mData.name or id == mData.id then
|
||||||
return mData.id
|
return mData.markId
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -7798,7 +7798,7 @@ do
|
|||||||
else
|
else
|
||||||
for mEntry, mData in pairs(mist.DBs.markList) do
|
for mEntry, mData in pairs(mist.DBs.markList) do
|
||||||
if id == mData.name or id == mData.id then
|
if id == mData.name or id == mData.id then
|
||||||
return mData.id
|
return mData.markId
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -7953,7 +7953,7 @@ do
|
|||||||
|
|
||||||
if markForCoa then
|
if markForCoa then
|
||||||
if type(markForCoa) == 'string' then
|
if type(markForCoa) == 'string' then
|
||||||
log:warn("coa is string")
|
--log:warn("coa is string")
|
||||||
if tonumber(markForCoa) then
|
if tonumber(markForCoa) then
|
||||||
coa = coas[tonumber(markForCoa)]
|
coa = coas[tonumber(markForCoa)]
|
||||||
markScope = 'coa'
|
markScope = 'coa'
|
||||||
|
|||||||
Reference in New Issue
Block a user