[Scummvm-git-logs] scummvm master -> f88300415c71773d2ceaf0db19768f6112db02dc
grisenti
noreply at scummvm.org
Fri Dec 15 14:19:51 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f88300415c HPL1: Remove always true conditional
Commit: f88300415c71773d2ceaf0db19768f6112db02dc
https://github.com/scummvm/scummvm/commit/f88300415c71773d2ceaf0db19768f6112db02dc
Author: grisenti (emanuele at grisenti.net)
Date: 2023-12-15T15:19:19+01:00
Commit Message:
HPL1: Remove always true conditional
Changed paths:
engines/hpl1/engine/resources/TextureManager.cpp
diff --git a/engines/hpl1/engine/resources/TextureManager.cpp b/engines/hpl1/engine/resources/TextureManager.cpp
index 8a9ba1f337c..a22bbb3029e 100644
--- a/engines/hpl1/engine/resources/TextureManager.cpp
+++ b/engines/hpl1/engine/resources/TextureManager.cpp
@@ -244,10 +244,7 @@ iTexture *cTextureManager::CreateCubeMap(const tString &asPathName, bool abUseMi
AddResource(pTexture);
}
- if (pTexture)
- pTexture->IncUserCount();
- else
- Error("Couldn't texture '%s'\n", sName.c_str());
+ pTexture->IncUserCount();
EndLoad();
return pTexture;
More information about the Scummvm-git-logs
mailing list