Skip to content

Commit

Permalink
correct init order
Browse files Browse the repository at this point in the history
  • Loading branch information
MillhioreBT committed Jun 22, 2023
1 parent 795c115 commit 0c904bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ int NpcScriptInterface::luaNpcCloseShopWindow(lua_State* L)
}

NpcEventsHandler::NpcEventsHandler(const std::string& file, Npc* npc) :
npc(npc), scriptInterface(std::make_unique<NpcScriptInterface>())
scriptInterface(std::make_unique<NpcScriptInterface>()), npc(npc)
{
if (!scriptInterface->loadNpcLib("data/npc/lib/npc.lua")) {
std::cout << "[Warning - NpcLib::NpcLib] Can not load lib: " << file << std::endl;
Expand Down

0 comments on commit 0c904bf

Please sign in to comment.