From 350fd4161803a58e8e44a6b1f2c2fad9b2a91650 Mon Sep 17 00:00:00 2001 From: Goober5000 Date: Mon, 22 Jun 2026 21:32:18 -0400 Subject: [PATCH] fix FRED indexing of Props Get the Prop class from the list, in the same way that a Ship class is gotten, which accounts for the no_fred flag. Fixes #7545. --- fred2/management.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fred2/management.cpp b/fred2/management.cpp index a057666f090..c466fd2ef68 100644 --- a/fred2/management.cpp +++ b/fred2/management.cpp @@ -775,7 +775,7 @@ int create_object(vec3d *pos, int waypoint_instance, bool prop) int obj, n; if (prop) { - int prop_class = m_new_prop_type_combo_box.GetCurSel(); + int prop_class = m_new_prop_type_combo_box.GetPropClass(m_new_prop_type_combo_box.GetCurSel()); if (prop_class < 0 || prop_class >= prop_info_size()) return -1;