Fix crash when closing order GUI with a hotkey

This commit is contained in:
dP
2021-09-10 23:10:06 +03:00
parent 1e6b6bde88
commit 890bf485fd

View File

@@ -1559,7 +1559,7 @@ public:
case OHK_TRANSFER: this->OrderClick_Unload(OUFB_TRANSFER, true); break; case OHK_TRANSFER: this->OrderClick_Unload(OUFB_TRANSFER, true); break;
case OHK_NO_UNLOAD: this->OrderClick_Unload(OUFB_NO_UNLOAD, true); break; case OHK_NO_UNLOAD: this->OrderClick_Unload(OUFB_NO_UNLOAD, true); break;
case OHK_NO_LOAD: this->OrderClick_FullLoad(OLFB_NO_LOAD, true); break; case OHK_NO_LOAD: this->OrderClick_FullLoad(OLFB_NO_LOAD, true); break;
case OHK_CLOSE: delete this; break; case OHK_CLOSE: this->Close(); break;
default: return ES_NOT_HANDLED; default: return ES_NOT_HANDLED;
} }
return ES_HANDLED; return ES_HANDLED;