← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/bug-1724145-corrupt-zip-when-saving into lp:widelands

 

The problem is that the method is called on a null object, so I can't do any checks in the method, because it's already too late. I tried checking whether get() is not null, but that doesn't work in the current implementation of the Lua interface. No idea if weak_ptr could help here.

The only way to avoid problems would be to completely remove LuaEconomy and not use it, but using numbers is probably fragile in its own way.

Thanks for the review!

@bunnybot merge
-- 
https://code.launchpad.net/~widelands-dev/widelands/bug-1724145-corrupt-zip-when-saving/+merge/349087
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1724145-corrupt-zip-when-saving.


References