Skip to content

Commit 225b5c4

Browse files
authored
Merge branch 'master' into feature/2dfx
2 parents c905a3d + 20a161d commit 225b5c4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Client/mods/deathmatch/logic/CClientModel.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ bool CClientModel::Deallocate()
8484
if (!m_bAllocatedByUs)
8585
return false;
8686

87-
if (m_pParentResource)
88-
m_pParentResource->GetResourceModelStreamer()->FullyReleaseModel(m_iModelID);
89-
9087
SetParentResource(nullptr);
9188

9289
CModelInfo* pModelInfo = g_pGame->GetModelInfo(m_iModelID, true);

Client/mods/deathmatch/logic/CClientModelManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ bool CClientModelManager::Remove(const std::shared_ptr<CClientModel>& pModel)
4949
int modelId = pModel->GetModelID();
5050
if (m_Models[modelId] != nullptr)
5151
{
52+
CResource* parentResource = m_Models[modelId]->GetParentResource();
53+
if (parentResource)
54+
parentResource->GetResourceModelStreamer()->FullyReleaseModel(modelId);
5255
m_Models[modelId]->RestoreEntitiesUsingThisModel();
5356
m_Models[modelId] = nullptr;
5457
m_modelCount--;

Shared/data/MTA San Andreas/MTA/locale/en_US/client.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: MTA San Andreas 1.x\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-09-25 18:23+0000\n"
11+
"POT-Creation-Date: 2024-09-27 04:28+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -2340,7 +2340,7 @@ msgstr ""
23402340

23412341
#: Client/core/CVersionUpdater.cpp:1915
23422342
msgid ""
2343-
"Update not currently avalable.\n"
2343+
"An update is currently not available.\n"
23442344
"\n"
23452345
"Please check www.mtasa.com"
23462346
msgstr ""

0 commit comments

Comments
 (0)