haxe warnings since it doesnt work with 4.3.0

This commit is contained in:
Yoshman29
2023-04-17 15:09:18 +02:00
parent 11339cb3cd
commit 33f0bc70eb
4 changed files with 51 additions and 5 deletions
+2 -2
View File
@@ -172,8 +172,8 @@ class Paths
* @param library (Additional) library to load the frames from.
*/
public static function getFrames(key:String, assetsPath:Bool = false, ?library:String) {
if (tempFramesCache.exists(key)) {
if (tempFramesCache[key].parent.bitmap.readable)
if (tempFramesCache[key] != null) {
if (tempFramesCache[key].parent != null && tempFramesCache[key].parent.bitmap != null && tempFramesCache[key].parent.bitmap.readable)
return tempFramesCache[key];
else
tempFramesCache[key] = null;