09-04-2008, 01:01 AM
Make sure the value isn't lower than the minimum value or the maximum...
(I didn't check this with my source, just typed it up in the post...so not 100% sure if it's right)
Code:
If Spell(EditorIndex).LevelReq < frmSpellEditor.scrlLevelReg.Min Then Spell(EditorIndex).LevelReq = frmSpellEditor.scrlLevelReg.Min
If Spell(EditorIndex).LevelReq > frmSpellEditor.scrlLevelReq.Max Then Spell(EditorIndex).LevelReq = frmSpellEditor.scrlLevelReq.Max
(I didn't check this with my source, just typed it up in the post...so not 100% sure if it's right)