Mercurial > wow > reaction
comparison ReAction.lua @ 248:9e708a155ab9
Fixed Stance/Shapeshift bar not being saved correctly across reboots
| author | Flick |
|---|---|
| date | Mon, 28 Mar 2011 10:43:36 -0700 |
| parents | 47818b3938c9 |
| children | 36a29870bf34 |
comparison
equal
deleted
inserted
replaced
| 247:586447595262 | 248:9e708a155ab9 |
|---|---|
| 226 config.relpoint = config.relpoint or "BOTTOM" | 226 config.relpoint = config.relpoint or "BOTTOM" |
| 227 config.y = config.y or 200 | 227 config.y = config.y or 200 |
| 228 config.x = config.x or 0 | 228 config.x = config.x or 0 |
| 229 else | 229 else |
| 230 config = config or profile.bars[name] or { } | 230 config = config or profile.bars[name] or { } |
| 231 if not config or not config.type or not self.barTypes[config.type] then | 231 if not config then |
| 232 error(("ReAction: Unable to construct/fetch config table for bar '%s'"):format(name)) | 232 error(("ReAction: Unable to fetch config table for bar '%s'"):format(name)) |
| 233 elseif not config.type or not self.barTypes[config.type] then | |
| 234 error(("ReAction: Unrecognized bar type '%s' for bar '%s'"):format(tostring(config.type), name)) | |
| 233 end | 235 end |
| 234 class = self.barTypes[config.type] | 236 class = self.barTypes[config.type] |
| 235 end | 237 end |
| 236 | 238 |
| 237 profile.bars[name] = config | 239 profile.bars[name] = config |
