MUTATIONOFJB: Fix Unused Variable Compiler Warning

This commit is contained in:
D G Turner 2019-12-20 08:06:09 +00:00
parent b37c52a07a
commit b21632c835

View File

@ -144,7 +144,7 @@ void GameWidget::handleMapScene(const Common::Event &event) {
const int16 y = event.mouse.y;
int index = 0;
if (Bitmap *const bitmap = scene->findBitmap(x, y, &index)) {
if (scene->findBitmap(x, y, &index)) {
Static *const stat = scene->getStatic(index);
if (stat && stat->_active == 1) {
game.startActionSection(ActionInfo::Walk, stat->_name);
@ -160,7 +160,7 @@ void GameWidget::handleMapScene(const Common::Event &event) {
int index = 0;
//bool found = false;
if (Bitmap *const bitmap = scene->findBitmap(x, y, &index)) {
if (scene->findBitmap(x, y, &index)) {
Static *const stat = scene->getStatic(index);
if (stat && stat->_active == 1) {
Object *const object = scene->getObject(index);