Mercurial > wow > reaction
comparison Button.lua @ 249:46b59a9ded76
Fix some errors related to re-using action IDs
author | Flick |
---|---|
date | Mon, 28 Mar 2011 14:52:35 -0700 |
parents | 65f2805957a0 |
children | c918ff9ac787 |
comparison
equal
deleted
inserted
replaced
248:9e708a155ab9 | 249:46b59a9ded76 |
---|---|
231 end | 231 end |
232 end | 232 end |
233 end | 233 end |
234 if id == nil then | 234 if id == nil then |
235 if unique then | 235 if unique then |
236 return nil | 236 error(("All action IDs for bars of type '%s' are in use, cannot create any more buttons"):format(self.config.barType)) |
237 end | 237 end |
238 pool.nWraps = nWraps + 1 | 238 pool.nWraps = nWraps + 1 |
239 end | 239 end |
240 until id ~= nil | 240 until id ~= nil |
241 end | 241 end |