Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit d05bc63

Browse files
Fixes type select in 'ask file' ('Save as 5.5' was broken)
1 parent c299d56 commit d05bc63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

engine/src/desktop-ans.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,7 @@ int MCA_ask_file_with_types(MCStringRef p_title, MCStringRef p_prompt, MCStringR
273273
if (t_result == kMCPlatformDialogResultSuccess)
274274
{
275275
r_value = MCValueRetain(*t_file);
276-
if (*t_type != nil)
277-
MCresult -> setvalueref(*t_type);
276+
r_result = MCValueRetain(*t_type);
278277
}
279278

280279
return 0;

0 commit comments

Comments
 (0)