fg() and bg()
Posted: Fri Oct 07, 2011 10:39 pm
fg() and bg(), until now, did not check to see if the colour inside them was a valid color in the color_table. If you used an invalid colour, you'd get an error such as this:
Edited as per the following posts. Was using an assert with concat, now uses an if statement
Needless to say, this was rather uninformative... I couldn't figure out, at all, what damned colour I was using that wasn't defined. Behold: New and improved, it writes to the error log TELLING you which it doesn't use.<./mudlet-lua/lua/GUIUtils.lua:651: attempt to index field '?' (a nil value)>
Edited as per the following posts. Was using an assert with concat, now uses an if statement