View Single Post
11-12-08, 11:03 AM   #20
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by Slakah View Post
The only difference is that in the first method PocketPlotDB is local, so I'm guessing your "PocketPlotDB is nil" error is due to variable scope. i.e.
I listed PocketPlotDB as a local at the top of the file, so scope was not it. As I mentioned, it did work after adding
Code:
PocketPlotDB = PocketPlotDB or defaults
(and removed the "or defaults" from the metatable assignment) *except* for the color table.

Anyway, the inpairs solution works for me. Thanks.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote