Fix undefined behaviour (casting a pointer to a delete object)

Authored by aacid on Oct 10 2018, 9:15 PM.

Description

Fix undefined behaviour (casting a pointer to a delete object)

Since at TextureHelper::removeScene the scene pointer is already dead,
casting it is undefined behaviour, so what we do to not have to do that
is make the list of scenes just be of qobject * so on remove we don't
have to cast and we juts cast when iterating, solves the undefined
behaviour and doesn't make the code much uglier

Details

Committed
aacidOct 10 2018, 9:15 PM
Parents
R423:4c567478e74d: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown