Lua: Fix lua_state::do_once()

This commit is contained in:
Ilari Liusvaara 2013-05-12 13:48:52 +03:00
parent b0edee81c8
commit 2cf05458bc
2 changed files with 2 additions and 2 deletions

View file

@ -293,7 +293,7 @@ public:
* Do something just once per VM.
*
* Parameter key: The do-once key value.
* Returns:
* Returns: True if called the first time for given key on given VM, false otherwise.
*/
bool do_once(void* key);

View file

@ -174,6 +174,6 @@ bool lua_state::do_once(void* key)
return true;
} else {
pop(1);
return true;
return false;
}
}