瀏覽代碼

fix compiling on linux

MeltyOnIce 3 周之前
父節點
當前提交
363b6a3aaa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sunrise/src/client/hooks/membership_probe/membership_probe.cpp

+ 1 - 1
Sunrise/src/client/hooks/membership_probe/membership_probe.cpp

@@ -198,7 +198,7 @@ void track(std::int64_t client, std::uint64_t now) noexcept {
 
 /** Reads the status word, defers to the original, then reads it again. */
 char __fastcall receive(std::int64_t client, std::int64_t body, int size) noexcept {
-    const auto* original = reinterpret_cast<Receive>(g_handle.original);
+    auto* original = reinterpret_cast<Receive>(g_handle.original);
     if (original == nullptr || client == 0) {
         return original != nullptr ? original(client, body, size) : 0;
     }