Core: Fix Windows compile

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-23 15:46:12 +02:00
parent 51d8333ccc
commit 050f85b2c6
2 changed files with 2 additions and 1 deletions
@@ -1514,7 +1514,7 @@ struct BG_AV_NodeInfo
uint16 PrevOwner; uint16 PrevOwner;
BG_AV_States State; BG_AV_States State;
BG_AV_States PrevState; BG_AV_States PrevState;
uint Timer; uint32 Timer;
bool Tower; bool Tower;
}; };
@@ -733,6 +733,7 @@ void CliRunnable::run()
char *command_str ; // = fgets(commandbuf,sizeof(commandbuf),stdin); char *command_str ; // = fgets(commandbuf,sizeof(commandbuf),stdin);
#if PLATFORM == WINDOWS #if PLATFORM == WINDOWS
char commandbuf[256];
command_str = fgets(commandbuf,sizeof(commandbuf),stdin); command_str = fgets(commandbuf,sizeof(commandbuf),stdin);
#else #else
command_str = readline("TC>"); command_str = readline("TC>");