From feeb23bd63958c0d63924e5273c7d7956e6ff4d1 Mon Sep 17 00:00:00 2001 From: Joris <joris.dauphin@gmail.com> Date: Mon, 18 Jun 2012 11:42:12 +0200 Subject: [PATCH] Fix compilation when MNG support is active. --- src/include/unittype.h | 4 ++-- src/video/mng.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/include/unittype.h b/src/include/unittype.h index 13375862d..3b12d5c99 100644 --- a/src/include/unittype.h +++ b/src/include/unittype.h @@ -930,8 +930,8 @@ public: std::string *Files; int Num; Mng **Mngs; - int CurrMng; - int NumIterations; + mutable int CurrMng; + mutable int NumIterations; } Portrait; #endif MissileConfig Missile; /// Missile weapon diff --git a/src/video/mng.cpp b/src/video/mng.cpp index a7c070a71..009d24257 100644 --- a/src/video/mng.cpp +++ b/src/video/mng.cpp @@ -316,7 +316,6 @@ void Mng::Draw(int x, int y) */ int Mng::Load(const std::string &name) { - mng_retcode myretcode; char buf[PATH_MAX]; LibraryFileName(name.c_str(), buf, sizeof(buf)); @@ -339,7 +338,7 @@ int Mng::Load(const std::string &name) mng_read(handle); if (surface && iteration != 0x7fffffff) { - myretcode = mng_display(handle); + mng_display(handle); } if (!surface || iteration == 0x7fffffff) {