Fix compilation when MNG support is active.

This commit is contained in:
Joris 2012-06-18 11:42:12 +02:00
parent 812d79410c
commit feeb23bd63
2 changed files with 3 additions and 4 deletions
src
include
video

View file

@ -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

View file

@ -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) {