coeng
diff src/gameobj.cc @ 2:4a1c9597f4d3
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 05 Feb 2015 11:04:07 +0200 |
parents | b0d8d454c546 |
children |
line diff
1.1 --- a/src/gameobj.cc Thu Feb 05 00:38:59 2015 +0200 1.2 +++ b/src/gameobj.cc Thu Feb 05 11:04:07 2015 +0200 1.3 @@ -1,3 +1,4 @@ 1.4 +#include <stdio.h> 1.5 #include <algorithm> 1.6 #include "gameobj.h" 1.7 1.8 @@ -25,6 +26,8 @@ 1.9 try { 1.10 comp.push_back(c); 1.11 comp_by_name[name] = c; 1.12 + 1.13 + c->gobj = this; 1.14 } 1.15 catch(...) { 1.16 fprintf(stderr, "failed to add component: %s\n", name);