Skip to content

Commit 344e7c2

Browse files
committed
2 parents c7c0e8c + 42dd270 commit 344e7c2

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/dependabot.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ updates:
66
allow:
77
- dependency-name: "libraries/hl2sdk-cs2"
88
- dependency-name: "libraries/metamod-source"
9+
- dependency-name: "libraries/Protobufs"
910
schedule:
1011
interval: "daily"
1112
commit-message:
12-
prefix: "chore(deps)"
13+
prefix: "chore(deps)"

configs/addons/counterstrikesharp/gamedata/gamedata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"signatures": {
4444
"library": "server",
4545
"windows": "48 ? ? 55 53 56 57 41 ? 48 ? ? ? 48 ? ? ? ? ? ? 4C 89 68",
46-
"linux": "55 48 89 E5 41 56 41 55 41 54 53 48 89 FB 48 83 EC 30 E8 ? ? ? ?"
46+
"linux": "55 48 89 E5 41 56 41 55 41 54 53 48 89 FB 48 83 EC 40 E8"
4747
}
4848
},
4949
"CGameEventManager_Init": {

libraries/Protobufs

Submodule Protobufs updated 230 files

src/scripting/natives/natives_events.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ static IGameEvent *CreateEvent(ScriptContext &script_context) {
4646
bool force = script_context.GetArgument<bool>(1);
4747

4848
auto pEvent = globals::gameEventManager->CreateEvent(name, force);
49-
managed_game_events.push_back(pEvent);
49+
50+
if (pEvent != nullptr) {
51+
managed_game_events.push_back(pEvent);
52+
}
5053

5154
return pEvent;
5255
}
@@ -301,4 +304,4 @@ REGISTER_NATIVES(events, {
301304
ScriptEngine::RegisterNativeHandler("LOAD_EVENTS_FROM_FILE", LoadEventsFromFile);
302305
})
303306

304-
} // namespace counterstrikesharp
307+
} // namespace counterstrikesharp

0 commit comments

Comments
 (0)