In some integer prompts, it doesn't make sense to enter a huge integer. It would probably be better to disallow typing huge integers in in the first place rather than only relying on clamping them after the fact.
Example:
- Quest->Misc Data->Triforce Pieces
- Click any of the 8 squares within the triforce fragments
- Type a very large number in the "Piece Number" prompt
- Click 'OK'
- Observe that fragment number has been clamped to 8
This is only a suggestion to add a parameter to the getnumber function in zquest.cpp and not a suggestion to remove the clamping.