Fix LegoROI forward declaration resolving to wrong namespace

The inline `class LegoROI*` in Catalog::GetVehicleState was being
resolved within `Multiplayer::Animation` namespace on some compilers
(e.g. devkitA64 GCC), creating an incomplete type. Move the forward
declaration before the namespace block.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Semmler 2026-03-28 15:22:00 -07:00
parent f7947e1720
commit e61f47abb2
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -5,6 +5,7 @@
#include <vector>
class LegoAnimationManager;
class LegoROI;
struct AnimInfo;
namespace Multiplayer::Animation
@ -83,7 +84,7 @@ class Catalog {
static bool CheckVehicleEligibility(const CatalogEntry* p_entry, int8_t p_charIndex, uint8_t p_vehicleState);
// Determine the vehicle state for a character given their current ride vehicle ROI.
static VehicleState GetVehicleState(int8_t p_charIndex, class LegoROI* p_vehicleROI);
static VehicleState GetVehicleState(int8_t p_charIndex, LegoROI* p_vehicleROI);
// Classify a g_vehicles[] index into a vehicle category.
// Returns 0=bike, 1=motorcycle, 2=skateboard, -1=invalid.