[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The attempt to call a nil value problem
- From: Francesco Abbate <francesco.bbt@...>
- Date: Mon, 6 Sep 2010 10:03:57 +0200
2010/9/5 Tyrael <jerky168@126.com>:
> This happens randomly, and i don't find in what condition it will
> happen. Any advice given is appreciated.
Hi,
I don t know exactly but in my experience it is strongly probable that
you forgot to declare the variable as local and lua is binding it to
the enclosing scope. This kind of problem can be hard to spot because
is some cases the program can actually work when you debug it at the
beginning.
Francesco