Object when you have a bad night (5)
I believe the answer is:
thing
'object when' is the definition.
'thing' can be an answer for 'object' (an object is a thing or item). I am not sure about the 'when' bit.
'a bad night' is the wordplay.
'a bad' is an anagram indicator.
'night' anagrammed gives 'THING'.
'you have' acts as a link.
Can you help me to learn more?
(Other definitions for thing that I've seen before include "Individual unit" , "Night (anag)" , "Unspecified object" , "Object, artefact" , "See 1" .)