From 7e6c8be7db2449c1f793b6fb01af5613282e7f27 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 15 Jul 2015 23:59:21 -0400 Subject: MOHAWK: Make video handles actual objects --- engines/mohawk/livingbooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mohawk/livingbooks.cpp') diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 14ce4bab52..6874f2420e 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -3791,7 +3791,7 @@ LBMovieItem::~LBMovieItem() { void LBMovieItem::update() { if (_playing) { VideoHandle videoHandle = _vm->_video->findVideoHandle(_resourceId); - if (videoHandle == NULL_VID_HANDLE || _vm->_video->endOfVideo(videoHandle)) + if (!videoHandle || videoHandle->endOfVideo()) done(true); } -- cgit v1.2.3