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

Commit 7eaad75

Browse files
committed
[[ Bug 22070 ]] Fix answer with type on macOS
This patch fixes a bug introduced during the refactor of LiveCode where on macOS the answer file with type command sets both `the result` and `it` to the chosen file path rather than setting `the result` to the chosen file type.
1 parent f169061 commit 7eaad75

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/notes/bugfix-22070.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix `answer file with type` setting `the result` to the chosen file path instead of chosen file type on macOS

engine/src/desktop-ans.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ int MCA_file_with_types(MCStringRef p_title, MCStringRef p_prompt, MCStringRef *
211211
{
212212
r_value = MCValueRetain(*t_file);
213213
if (*t_type != nil)
214-
r_result = MCValueRetain(*t_file);
214+
r_result = MCValueRetain(*t_type);
215215
}
216216

217217
return 0;

0 commit comments

Comments
 (0)