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.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to