From b5c4e09cec2a1c7280db969e4129609acf17e1c2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 9 Oct 2016 10:02:22 +0200 Subject: BLADERUNNER: Fix compilation --- engines/bladerunner/item_pickup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/bladerunner/item_pickup.cpp b/engines/bladerunner/item_pickup.cpp index ff5f5e9763..9792493a78 100644 --- a/engines/bladerunner/item_pickup.cpp +++ b/engines/bladerunner/item_pickup.cpp @@ -95,7 +95,7 @@ void ItemPickup::tick() { _facing -= float(2.0f * M_PI); } - _animationFrame = (_animationFrame + 1) % _vm->_sliceAnimations->getFrameCount(_animationId); + _animationFrame = ((int)(_animationFrame + 1)) % ((int)_vm->_sliceAnimations->getFrameCount(_animationId)); } void ItemPickup::draw() { -- cgit v1.2.3