Skip to content

Commit

Permalink
fix: support long/ulong coming from mod settings (#354)
Browse files Browse the repository at this point in the history
This made the cybersyn-combinator mod (and probably others) fail to load
  • Loading branch information
shpaass authored Nov 12, 2024
2 parents a159d9e + 41290b2 commit 33d50ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Yafc.Parser/LuaContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ private void PushManagedObject(object? value) {
else if (value is int i) {
lua_pushnumber(L, i);
}
else if (value is long l) {
lua_pushnumber(L, l);
}
else if (value is ulong ul) {
lua_pushnumber(L, ul);
}
else if (value is string s) {
_ = lua_pushstring(L, s);
}
Expand Down

0 comments on commit 33d50ef

Please sign in to comment.