A Kansas man charged with murder after his 10-month-old foster daughter was left in a hot car for more than two hours was using marijuana inside his house while she suffered and died in the vehicle, a prosecutor said on Friday.

Seth Jackson, 29, is charged with first-degree murder in the death of the girl. Police said he left her in a vehicle in Wichita, Kansas, on July 24 as temperatures in the city hovered around 90 degrees.

Sedgwick County District Attorney Marc Bennett said he told a judge during a bond hearing on Friday at Sedgwick County District Court that Jackson had picked up marijuana from a dealer and then returned home and started using the drug without taking the girl out of the car.

He added that Jackson also used pot earlier in the day.

Police reported that Jackson said he returned home with the baby and a 5-year-old boy, who was also his foster child, but forgot the girl was in the car until he saw something on TV that reminded him of her. He rushed to the car, but she was dead, police said.

Bennett said in an interview after the hearing that Jackson's marijuana use was reckless and put the child in a dangerous position.

Jackson remains in custody on $250,000 bond, but a judge decided on Friday to modify the terms so that Jackson, rather than a bonding company, can sign for most of the bond, Bennett said.

An attorney representing Jackson in court on Friday did not immediately return a call for comment. Bennett said the attorney did not respond at the hearing to the allegation of marijuana use.