--- engines/ags/engine/ac/draw.cpp.orig	2025-05-18 13:10:59.828105200 +0800
+++ engines/ags/engine/ac/draw.cpp	2025-05-18 13:11:23.426870900 +0800
@@ -1387,7 +1387,7 @@
 // Generates RoomObject's raw bitmap and saves in actsps; updates object cache.
 bool construct_object_gfx(int objid, bool force_software) {
 	const RoomObject &obj = _G(objs)[objid];
-	if (!_GP(spriteset).DoesSpriteExist(obj.num))
+	if (_GP(spriteset)[obj.num] == nullptr)
 		quitprintf("There was an error drawing object %d. Its current sprite, %d, is invalid.", objid, obj.num);
 
 	ObjectCache objsrc(obj.num, obj.tint_r, obj.tint_g, obj.tint_b,
