fix build (bad merge, self is now f)

This commit is contained in:
Enno Rehling 2019-09-24 09:35:38 +02:00
parent 00e39717e1
commit 7335d8c5c9
2 changed files with 5 additions and 2 deletions

View File

@ -260,7 +260,7 @@ static int tolua_faction_debug_messages(lua_State * L)
int i = 1; int i = 1;
if (f->msgs) { if (f->msgs) {
mlist *ml; mlist *ml;
for (ml = self->msgs->begin; ml; ml = ml->next, ++i) { for (ml = f->msgs->begin; ml; ml = ml->next, ++i) {
char buf[120]; char buf[120];
nr_render(ml->msg, default_locale, buf, sizeof(buf), NULL); nr_render(ml->msg, default_locale, buf, sizeof(buf), NULL);
puts(buf); puts(buf);

View File

@ -1,8 +1,11 @@
#pragma once
struct lua_State;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
struct lua_State;
int tolua_factionlist_next(struct lua_State *L); int tolua_factionlist_next(struct lua_State *L);
void tolua_faction_open(struct lua_State *L); void tolua_faction_open(struct lua_State *L);