View Single Post
11-16-19, 01:48 PM   #6
StafordDev
A Murloc Raider
Join Date: May 2016
Posts: 7
The error described in the first post has already been fixed. And yes, PC_MinimapPos is already a table even in defaults. Initialization of variables:
Code:
	-- initialize variables if this is the first time this addon loaded
	if PC_State == nil then
		PC_State = 1
	end
	if PC_MH == nil then
		PC_MH = "Not selected"
	end
	if PC_OH == nil then
		PC_OH = "Not selected"
	end
	if PC_MinimapPos == nil then
		PC_MinimapPos = { 90 }
	end
And here are the contents of PoisonCharges.lua in SavedVariables with default values as a proof:
Code:
PC_State = 1
PC_MH = "Not selected"
PC_OH = "Not selected"
PC_MinimapPos = {
	90, -- [1]
}
There're no errors during gameplay, the addon works perfectly but if I move minimap button the new position is not saved.
  Reply With Quote