Lua: Fix lua_state::do_once()
This commit is contained in:
parent
b0edee81c8
commit
2cf05458bc
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -174,6 +174,6 @@ bool lua_state::do_once(void* key)
|
|||
return true;
|
||||
} else {
|
||||
pop(1);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue