
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
tbl={} tbl[1]=function() print("test") end addhook("second","tbl[1]") --causes 'attempt to call a nil value' tbl={} tbl[1]={} tbl[1].test=function() print("test") end addhook("second","tbl[1].test") --crashes CS2D without warning or error