diff Game.cpp @ 2438:c10c639f8365

* Fixed releasing movie for movie-less transitions.
author a.parshin
date Thu, 24 Jul 2014 00:31:49 +0300
parents 99e7bd7ec0a2
children 702cc7e6eefd
line wrap: on
line diff
--- a/Game.cpp	Wed Jul 23 22:09:56 2014 +0300
+++ b/Game.cpp	Thu Jul 24 00:31:49 2014 +0300
@@ -2614,7 +2614,9 @@
           dword_50CDC8 = 1;
           sub_42FBDD();
           PlayHouseSound(uCurrentHouse_Animation, HouseSound_NotEnoughMoney_TrainingSuccessful);
-          pVideoPlayer->Unload();
+
+          if (pVideoPlayer->AnyMovieLoaded())
+            pVideoPlayer->Unload();
           DialogueEnding();
           viewparams->bRedrawGameUI = true;
           if ( dword_59117C_teleportx | dword_591178_teleporty | dword_591174_teleportz | dword_591170_teleport_directiony | dword_59116C_teleport_directionx | dword_591168_teleport_speedz )