Pure virtual function being called (GLsRunning == 1) after trying to open next level

I’m working on my first project, and I’m only using C++ on a singular function that works perfectly fine (i see the results from the previous levels).

This error occurs after calling “OpenLevel”, I think, and not in every level, sometimes on level 5 to level 6, other times from level 1 to 2, etc.

I’ve done the following things, as some people told on another posts that it may be an issue with having too many actors and such:

  • destroy actors from previous level
  • implementing the following logic in the widget with the button ‘Next Level’:

load next level → delay → open level → remove (widget) → unload previous level.