mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-09 12:22:34 +01:00
Make it more obvious that create_garage returns an index
This commit is contained in:
parent
873e2d4040
commit
830b295867
@ -402,9 +402,9 @@ void game_create_garage(const ScriptArguments& args)
|
||||
args.getWorld()->state->garages.push_back({
|
||||
min, max, garageType
|
||||
});
|
||||
int garageIndex = args.getWorld()->state->garages.size() - 1;
|
||||
|
||||
// TODO actually store the garage information and return the handle
|
||||
*args[7].globalInteger = args.getWorld()->state->garages.size()-1;
|
||||
*args[7].globalInteger = garageIndex;
|
||||
}
|
||||
|
||||
void game_disable_ped_paths(const ScriptArguments& args)
|
||||
|
Loading…
Reference in New Issue
Block a user