*fixed a multiple disposing bug with gc;

*polished the yard sample.
This commit is contained in:
Wang Renxin 2016-08-09 10:41:18 +08:00
parent 0eea555b2b
commit 442e26ca3f
3 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,6 @@
Aug. 9 2016
Fixed a multiple disposing bug with GC
Aug. 7 2016
Refactored to return UNKNOWN when trying to access a not exist member in a prototype

View File

@ -5861,7 +5861,7 @@ static void _gc_add(_ref_t* ref, void* data, _gc_t* gc) {
return;
if(gc && _ht_find(gc->collected_table, ref))
return;
_ht_remove(gc->collected_table, ref, 0);
if(!gc->table)
return;

View File

@ -6,6 +6,7 @@
import "level.bas"
import "player.bas"
cls()
print "Welcome to Yet Another RPG Dungeon!";
level.create()