Skip to content

Commit ab3b355

Browse files
committed
fix: sp portal colors after plugin unload
1 parent 45f8f81 commit ab3b355

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Modules/Client.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,10 @@ void Client::Shutdown() {
12231223
Command::Unhook("playvideo_end_level_transition", Client::playvideo_end_level_transition_callback);
12241224
Command::Unhook("+leaderboard", Client::openleaderboard_callback);
12251225
Command::Unhook("unpause", Client::closeleaderboard_callback);
1226+
g_drawPortalPatch->Restore();
1227+
g_drawPortalGhostPatch->Restore();
1228+
SAFE_DELETE(g_drawPortalPatch);
1229+
SAFE_DELETE(g_drawPortalGhostPatch);
12261230
}
12271231

12281232
Client *client;

0 commit comments

Comments
 (0)