No, I do use TeamThink() but my own rolled version, not Valve's. I did just find a culprit that could have been causing it. There was one conditional which wasn't explicitly returning "nil" that the caller was checking that could I believe lead to undefined behavior.
Originally Posted by ironmano
It was something akin to the code below. As you see "blah()" doesn't always return a "sane" value, there was no "return nil" for the default case. I am not sure what Lua does in that situation b/c it does compile and such, but I believe the return of blah() can under that situation be anything. And if the "wrong" anything happens then my use of the return can cause a crash.
if global_func_whatever() == something then
local val = blah()
if val ~= nil then
-- DO STUFF