mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Renamed LibClasses * VLC to GameLibrary * LIBRARY
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#include "../lib/mapObjectConstructors/AObjectTypeHandler.h"
|
||||
#include "../lib/mapObjectConstructors/CObjectClassesHandler.h"
|
||||
#include "../lib/mapping/CMap.h"
|
||||
#include "../lib/VCMI_Lib.h"
|
||||
#include "../lib/GameLibrary.h"
|
||||
|
||||
|
||||
MinimapView::MinimapView(QWidget * parent):
|
||||
@@ -591,7 +591,7 @@ void MapView::dragEnterEvent(QDragEnterEvent * event)
|
||||
auto objId = data["id"].toInt();
|
||||
auto objSubId = data["subid"].toInt();
|
||||
auto templateId = data["template"].toInt();
|
||||
auto factory = VLC->objtypeh->getHandlerFor(objId, objSubId);
|
||||
auto factory = LIBRARY->objtypeh->getHandlerFor(objId, objSubId);
|
||||
auto templ = factory->getTemplates()[templateId];
|
||||
controller->discardObject(sc->level);
|
||||
controller->createObject(sc->level, factory->create(nullptr, templ));
|
||||
|
||||
Reference in New Issue
Block a user