mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-02 02:23:56 +00:00
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:
parent
f7947e1720
commit
e61f47abb2
@ -5,6 +5,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class LegoAnimationManager;
|
class LegoAnimationManager;
|
||||||
|
class LegoROI;
|
||||||
struct AnimInfo;
|
struct AnimInfo;
|
||||||
|
|
||||||
namespace Multiplayer::Animation
|
namespace Multiplayer::Animation
|
||||||
@ -83,7 +84,7 @@ class Catalog {
|
|||||||
static bool CheckVehicleEligibility(const CatalogEntry* p_entry, int8_t p_charIndex, uint8_t p_vehicleState);
|
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.
|
// 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.
|
// Classify a g_vehicles[] index into a vehicle category.
|
||||||
// Returns 0=bike, 1=motorcycle, 2=skateboard, -1=invalid.
|
// Returns 0=bike, 1=motorcycle, 2=skateboard, -1=invalid.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user