Skip to content

Commit e9984f6

Browse files
committed
Mark all metatables as consts
Fixing the Likka no following bug
1 parent e27ab52 commit e9984f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mech/ais/combat.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,5 @@ methods.observe = function(self, entity, dt)
142142
end
143143
end
144144

145-
Ldump.mark(combat_ai, {}, ...)
145+
Ldump.mark(combat_ai, {mt = {}}, ...)
146146
return combat_ai

state/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,5 +281,5 @@ methods.in_combat = function(self, entity)
281281
return State.combat and Table.contains(State.combat.list, entity)
282282
end
283283

284-
Ldump.mark(state, {}, ...)
284+
Ldump.mark(state, {mt = "const"}, ...)
285285
return state

0 commit comments

Comments
 (0)