1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

- Fixed bug when starting random map with 1 player - Refactoring - Fixed compile bug - Heroes can be selected in map selection screen(RMG map) - Main town gen

This commit is contained in:
beegee1
2013-01-20 14:43:58 +00:00
parent 5b919d88eb
commit 1cab54b87a
8 changed files with 45 additions and 24 deletions

View File

@ -54,7 +54,11 @@ rett * createAny(std::string dllname, std::string methodName)
else if(!getName || !getAI)
{
tlog1 << dllname << " does not export method " << methodName << std::endl;
#ifdef _WIN32
FreeLibrary(dll);
#else
dlclose(dll);
#endif
throw std::runtime_error("Cannot find method " + methodName);
}