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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user