1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fixed incorrect variable name.

This commit is contained in:
Frank Zago 2009-07-18 23:39:14 +00:00
parent eb40ade906
commit 601117f440

View File

@ -38,7 +38,7 @@ CGlobalAI * CAIHandler::getNewAI(CCallback * cb, std::string dllname)
getName = (void(*)(char*))GetProcAddress(dll,"GetAiName");
getAI = (CGlobalAI*(*)())GetProcAddress(dll,"GetNewAI");
#else
dllPath = "AI/"+dllPath+".so";
dllPath = "AI/"+dllname+".so";
void *dll = dlopen(dllPath.c_str(), RTLD_LOCAL | RTLD_LAZY);
if (!dll)
{