Skip to content

Commit

Permalink
Merge pull request #830 from psiberx/master
Browse files Browse the repository at this point in the history
Fix number conversion
  • Loading branch information
maximegmd authored Jun 20, 2023
2 parents 97d8a68 + 1694488 commit 3865403
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reverse/LuaRED.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ template <class T, FixedString REDName> struct LuaRED
{
if (aObject.get_type() == sol::type::number)
{
result.value = apAllocator->New<T>(aObject.as<T>());
if (aObject.is<T>())
{
result.value = apAllocator->New<T>(aObject.as<T>());
}
}
else if (IsLuaCData(aObject))
{
Expand Down

0 comments on commit 3865403

Please sign in to comment.