We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e511209 commit ea79b0bCopy full SHA for ea79b0b
game/scripts/vscripts/lib/dota_ts_adapter.ts
@@ -101,6 +101,10 @@ function clearTable(table: object) {
101
for (const key in table) {
102
delete (table as any)[key];
103
}
104
+
105
+ // Remove metatable added by ExtendInstance
106
+ // https://github.com/SteamDatabase/GameTracking-Dota2/blob/7edcaa294bdcf493df0846f8bbcd4d47a5c3bd57/game/core/scripts/vscripts/init.lua#L195
107
+ setmetatable(table, undefined);
108
109
110
function getFileScope(): [any, string] {
0 commit comments