Just be careful to destroy TStaticVars when you're done with them or you'll leak memory.
edit: maybe this is not necessary?
Quote:
Originally Posted by Stefan
you need to call destroy() on the player object after you have used it, when you do new TServerPlayer() it is not automatically destroyed like TStaticVars()
|
Apparently they destroy themselves, although in the past it's seemed that they don't.
edit 2: per Skyld, they'll be destroyed eventually if there are no references to them.