summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Sim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Sim.cpp')
-rw-r--r--Stars45/Sim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/Sim.cpp b/Stars45/Sim.cpp
index 3933855..9e193b9 100644
--- a/Stars45/Sim.cpp
+++ b/Stars45/Sim.cpp
@@ -268,9 +268,9 @@ Sim::UnloadMission()
RadioTraffic::DiscardMessages();
// release texture memory for 2D screens:
- Starshatter* stars = Starshatter::GetInstance();
- if (stars)
- stars->InvalidateTextureCache();
+ Video* video = Video::GetInstance();
+ if (video)
+ video->InvalidateCache();
cam_dir = CameraDirector::GetInstance();
if (cam_dir)