We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b91f4fa commit d62c551Copy full SHA for d62c551
engine/src/cmdsf.cpp
@@ -1415,16 +1415,19 @@ void MCExport::exec_ctxt(MCExecContext &ctxt)
1415
1416
if (sformat == EX_OBJECT)
1417
{
1418
+ if (image == nil)
1419
+ {
1420
+ ctxt . LegacyThrow(EE_EXPORT_NOTANIMAGE);
1421
+ return;
1422
+ }
1423
+
1424
MCObject *optr = NULL;
- if (image != NULL)
1425
+ //get image from chunk
1426
+ uint4 parid;
1427
+ if (!image->getobj(ctxt, optr, parid, True))
1428
- //get image from chunk
- uint4 parid;
- if (!image->getobj(ctxt, optr, parid, True))
- {
- ctxt . LegacyThrow(EE_EXPORT_NOSELECTED);
- return;
- }
1429
+ ctxt . LegacyThrow(EE_EXPORT_NOSELECTED);
1430
1431
}
1432
1433
MCAutoArrayRef t_array;
0 commit comments