Revert "conversion error"

This reverts commit f811117458.
This commit is contained in:
davidmarr 2024-11-28 12:50:59 +01:00
parent 3dd8e76d8b
commit 89c27fc19d
3 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ namespace TEN::Control::Volumes
{ {
using Activator = std::variant< using Activator = std::variant<
std::nullptr_t, std::nullptr_t,
int, short,
MESH_INFO*, MESH_INFO*,
CAMERA_INFO*>; CAMERA_INFO*>;

View file

@ -525,9 +525,9 @@ void SetLevelFuncCallback(const TypeOrNil<LevelFunc>& cb, const std::string& cal
} }
int Moveable::GetIndex() const short Moveable::GetIndex() const
{ {
return (int)m_num; return m_num;
} }
void Moveable::SetOnHit(const TypeOrNil<LevelFunc>& cb) void Moveable::SetOnHit(const TypeOrNil<LevelFunc>& cb)

View file

@ -136,7 +136,7 @@ public:
friend bool operator ==(const Moveable&, const Moveable&); friend bool operator ==(const Moveable&, const Moveable&);
friend void SetLevelFuncCallback(const TypeOrNil<LevelFunc>& cb, const std::string& callerName, Moveable& mov, std::string& toModify); friend void SetLevelFuncCallback(const TypeOrNil<LevelFunc>& cb, const std::string& callerName, Moveable& mov, std::string& toModify);
int GetIndex() const; short GetIndex() const;
protected: protected:
ItemInfo* m_item; ItemInfo* m_item;