[RMXP] cockroach's Skill Tree script changes all blank backgrounds into the title screen image

For some reason, whenever the skill tree scene is called, any and all blank backgrounds in the game are suddenly replaced with whatever image is set to be the title screen image, and I'm not entirely sure why.


When I say the backgrounds are, "replaced" it's actually more like the title screen image is underlayed behind every map and menu. This effect even appears in the script demo if you erase a couple of the map tiles.

Spoiler: Pictures
Before.png After.png Affected pause menu.png

If anyone could explain why this happens, or how to prevent it from happening, it would be much appreciated.
So it looks like the script calls up the title and draws it behind the skill tree scene to fill in any blank space that might be there (even though normally there isn't any), but then it forgets to get rid of the drawing once you close the scene so it hangs around like you saw. Paste the snippet below into your script editor below the original skill tree script and it should handle the disposing of the title screen.
Spoiler
Code:
class Window_SkillTree

  def dispose
    @sprite.dispose
    dispose_arrows
    super
  end
 
end
That did the trick, thanks for the help.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-cockroachs-skill-tree-script-changes-all-blank-backgrounds-into-the-title-screen-image.99786/