Ticket #15883: draw.cpp.patch

File draw.cpp.patch, 620 bytes (added by ctoroman, 11 months ago)
  • engines/ags/engine/ac/draw.cpp

    old new  
    13871387// Generates RoomObject's raw bitmap and saves in actsps; updates object cache.
    13881388bool construct_object_gfx(int objid, bool force_software) {
    13891389        const RoomObject &obj = _G(objs)[objid];
    1390         if (!_GP(spriteset).DoesSpriteExist(obj.num))
     1390        if (_GP(spriteset)[obj.num] == nullptr)
    13911391                quitprintf("There was an error drawing object %d. Its current sprite, %d, is invalid.", objid, obj.num);
    13921392
    13931393        ObjectCache objsrc(obj.num, obj.tint_r, obj.tint_g, obj.tint_b,