Jump to content

[PATCH] Fix crash on Linux at server startup since 9170


daveh

Recommended Posts

* What bug does the patch fix? What features does the patch add?

Server crashes on Linux at startup since 9170

* For which repository revision was the patch created?

[9174]

* Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

no.

* Who has been writing this patch? Please include either forum user names or email addresses.

daveh

Patch:

diff --git a/src/game/DBCStores.cpp b/src/game/DBCStores.cpp
index ce4d88c..8923d99 100644
--- a/src/game/DBCStores.cpp
+++ b/src/game/DBCStores.cpp
@@ -186,7 +186,6 @@ static bool ReadDBCBuildFileText(const std::string& dbc_path, char const* locale
    {
        char buf[100];
        fread(buf,1,100-1,file);
-        fclose(file);

        text = &buf[0];
        fclose(file);

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use