Player attrs: permits to remove an attribute by setting value to nil (#5716)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Sun, 7 May 2017 10:13:15 +0000 (12:13 +0200)
committerGitHub <noreply@github.com>
Sun, 7 May 2017 10:13:15 +0000 (12:13 +0200)
commitc1b3ed4180dea16e2fa77663a7d2bf155595dd60
tree2cb74486cb3a493716be611ca4cf44d666dec3bf
parent0d7c37943bf29b2c4956576c15efa796d5b5f2d4
Player attrs: permits to remove an attribute by setting value to nil (#5716)

* Player attrs: permits to remove an attribute by setting value to nil

When doing player:set_attribute("attr", nil) remove attribute

Also remove a useless check on C++ API part (already done by checkplayer)

Fix #5709
doc/lua_api.txt
games/minimal/mods/default/init.lua
src/content_sao.h
src/script/lua_api/l_object.cpp