Is the following sentence correct?
“Lockhart called to the crowd, and he set off back to the castle with Harry, who was wishing he knew a good vanishing spell, still clasped to his side.”
Shouldn’t it read:
“ … to the castle with Harry, who was wishing he had known a good vanishing spell…”
Personally, I would not try to second guess J.K. Rowling. She probably has the highest paid editors in the English language.
The sentence is fine. As Harry was on his way to the castle, he “was wishing” some thing.
But you really should post the full sentence.
As the boy walked down the street, he was wishing he had more friends.
A continuous action in the past at the time of a simple past action.