Skip to content

Commit

Permalink
maybe freeze fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisSoemers committed Jul 19, 2023
1 parent f42427d commit 8d47b40
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ message("Using toolchain file ${CMAKE_TOOLCHAIN_FILE}.")
########################################################################################################################
project(
PAPER
VERSION 2.2.3
VERSION 2.2.4
DESCRIPTION "The PAper Papyrus ExtendeR. Plugin to expose new functions and events to Skyrim's 'Papyrus' scripting language. "
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
Expand Down
4 changes: 2 additions & 2 deletions include/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// Instead, edit the template in /cmake/version.h.in

#define PROJECT_VER 2.2.3
#define PROJECT_VER 2.2.4
#define PROJECT_VER_MAJOR 2
#define PROJECT_VER_MINOR 2
#define PROJECT_VER_PATCH 3
#define PROJECT_VER_PATCH 4
20 changes: 8 additions & 12 deletions src/OnContainerChangedEventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ RE::BSEventNotifyControl OnContainerChangedEventHandler::ProcessEvent(

batchedItemRemovedEventsMap[a_event->oldContainer].emplace_back(a_event->newContainer,
a_event->baseObj, a_event->itemCount);
}

if (!haveQueuedUpTaskRemovedEvents) {
haveQueuedUpTaskRemovedEvents = true;
SKSE::GetTaskInterface()->AddTask([this]() {
this->SendItemRemovedEvents();
});
}
if (!haveQueuedUpTaskRemovedEvents) {
haveQueuedUpTaskRemovedEvents = true;
SKSE::GetTaskInterface()->AddTask([this]() { this->SendItemRemovedEvents(); });
}
}

Expand All @@ -44,13 +42,11 @@ RE::BSEventNotifyControl OnContainerChangedEventHandler::ProcessEvent(

batchedItemAddedEventsMap[a_event->newContainer].emplace_back(
a_event->oldContainer, a_event->baseObj, a_event->itemCount);
}

if (!haveQueuedUpTaskAddedEvents) {
haveQueuedUpTaskAddedEvents = true;
SKSE::GetTaskInterface()->AddTask([this]() {
this->SendItemAddedEvents();
});
}
if (!haveQueuedUpTaskAddedEvents) {
haveQueuedUpTaskAddedEvents = true;
SKSE::GetTaskInterface()->AddTask([this]() { this->SendItemAddedEvents(); });
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "paper-plugin",
"version-string": "2.2.3",
"version-string": "2.2.4",
"port-version": 0,
"description": "The PAper Papyrus ExtendeR. Plugin to expose new functions and events to Skyrim's 'Papyrus' scripting language.",
"license": "Apache-2.0",
Expand Down

0 comments on commit 8d47b40

Please sign in to comment.