Skip to content

Commit

Permalink
fix(skyrim-platform): update SkyrimPlatform.cpp (skyrim-multiplayer#2218
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Pospelove authored Nov 14, 2024
1 parent db63d2a commit 3a26227
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ class CommonExecutionListener : public TickListener
void* onLoadPluginFileCallback = nullptr;
void* self = nullptr;
const char* pluginPathUtf8 = nullptr;
const char* scriptSrc = nullptr;
};
#pragma pack(pop)
static_assert(sizeof(Msg) == 24);
static_assert(sizeof(Msg) == 32);

auto s = path.u8string();
std::string pluginPathUtf8(s.begin(), s.end());
Expand All @@ -206,6 +207,7 @@ class CommonExecutionListener : public TickListener
msg.onLoadPluginFileCallback = OnLoadPluginFileCallback;
msg.self = this;
msg.pluginPathUtf8 = pluginPathUtf8.data();
msg.scriptSrc = scriptSrc.data();

tmpPatchedPluginSources = std::nullopt;

Expand Down

0 comments on commit 3a26227

Please sign in to comment.